@figma/code-connect
Version:
A tool for connecting your design system components in code with your design system in Figma
11 lines • 642 B
TypeScript
import { CodeConnectJSON } from './figma_connect';
import { CodeConnectConfig } from './project';
/**
* Returns true if the file content looks like a raw template file, i.e. its
* leading comment block contains a `// url=`, `// component=`, or `// source=`
* directive. Used to distinguish raw `.figma.ts` templates from React/HTML
* Code Connect files that share the same extension.
*/
export declare function isRawTemplate(content: string): boolean;
export declare function parseRawFile(filePath: string, label: string | undefined, config?: CodeConnectConfig, dir?: string): CodeConnectJSON;
//# sourceMappingURL=raw_templates.d.ts.map