typescript-scaffolder
Version:
 
33 lines • 1.26 kB
TypeScript
/**
* Attempts to map key names to more specific faker generators at runtime
* @param key
*/
export declare function getRuntimeFakerValueForKey(key: string): string | null;
/**
* Attempts to map key names to more specific faker generators for code generated files
* @param key
*/
export declare function getCodeGenFakerValueForKey(key: string): string | null;
/**
* Generates a faker-based mock value expression string for code generation.
* @param type
* @param key
*/
export declare function generateFakerMockValue(type: string, key?: string): string;
/**
* Generates a deterministic, simple mock value expression string for code generation.
* @param type
* @param key
*/
export declare function generateStaticMockValue(type: string, key?: string): string;
/**
* High-level resolver — decides how to mock a property based on type,
* whether it's a local interface, and if faker is enabled.
* Used by the factory generator and future scaffolds. * @param name
* @param name
* @param type
* @param localInterfaces
* @param useFakerDefaults
*/
export declare function getMockValueForProperty(name: string, type: string, localInterfaces: Set<string>, useFakerDefaults: boolean): string;
//# sourceMappingURL=mock-value-resolver.d.ts.map