dynamate-design-to-code
Version:
A powerful tool for converting Figma designs into high-quality, production-ready code with built-in best practices and customizable rulesets
36 lines (35 loc) • 985 B
TypeScript
/**
* Converts a string to PascalCase
*/
export declare function toPascalCase(str: string): string;
/**
* Ensures a directory exists, creating it if necessary
*/
export declare function ensureDir(dir: string): Promise<void>;
/**
* Validates a component name
*/
export declare function isValidComponentName(name: string): boolean;
/**
* Extracts dependencies from code
*/
export declare function extractDependencies(code: string): string[];
/**
* Formats a file path according to the operating system
*/
export declare function formatPath(...parts: string[]): string;
/**
* Validates a Figma file ID
*/
export declare function isValidFigmaFileId(fileId: string): boolean;
/**
* Creates a backup of an existing file
*/
export declare function createBackup(filePath: string): Promise<void>;
/**
* Sanitizes a filename
*/
export declare function sanitizeFileName(name: string): string;
export * from './figma';
export * from './files';
export * from './ruleset-generator';