UNPKG

typescript-scaffolder

Version:

![npm version](https://img.shields.io/npm/v/typescript-scaffolder) ![coverage](https://img.shields.io/badge/coverage-97.38%25-green)

33 lines 1.26 kB
/** * 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