UNPKG

typescript-scaffolder

Version:

![npm version](https://img.shields.io/npm/v/typescript-scaffolder) ### Unit Test Coverage: 97.12%

14 lines 503 B
/** * Infers a schema based on JSON string * NOTE: Use JSON.stringify(obj) on the JSON value * before passing to this function * @param json * @param interfaceName */ export declare function inferJsonSchema(json: string, interfaceName: string): Promise<string | null>; /** * Infers a schema from a JSON file based on the full file path * * @param filePath */ export declare function inferJsonSchemaFromPath(filePath: string): Promise<string | null>; //# sourceMappingURL=schema-inferer.d.ts.map