typescript-scaffolder
Version:
 ### Unit Test Coverage: 97.53%
14 lines • 479 B
TypeScript
/**
* Infers a schema based on JSON string
* NOTE: Use JSON.stringify(obj) on the JSON value before passing to this function
* NOTE:
* @param json
* @param interfaceName
*/
export declare function inferJsonSchema(json: string, interfaceName: string): Promise<string | null>;
/**
* Infers a schema from a JSON file
* @param filePath
*/
export declare function inferJsonSchemaFromPath(filePath: string): Promise<string | null>;
//# sourceMappingURL=schema-inferer.d.ts.map