UNPKG

@figma/code-connect

Version:

A tool for connecting your design system components in code with your design system in Figma

24 lines 848 B
import { ReactProjectInfo } from '../connect/project'; import { CodeConnectJSON } from '../connect/figma_connect'; interface ConvertStorybookFilesArgs { /** * Optionally override the glob used to find stories. This is currently not * exposed in the config, but is used by the tests */ storiesGlob?: string; /** * Information about the project */ projectInfo: ReactProjectInfo; } /** * Converts all Storyboook files in a directory into Code Connect objects. If a file * cannot be converted (e.g. unsupported syntax), it is ignored and an error is * logged. * * @param args * @returns An array of Code Connect objects */ export declare function convertStorybookFiles({ projectInfo, storiesGlob, }: ConvertStorybookFilesArgs): Promise<CodeConnectJSON[]>; export {}; //# sourceMappingURL=convert.d.ts.map