typescript-scaffolder
Version:
 ### Unit Test Coverage: 97.12%
14 lines • 503 B
TypeScript
/**
* 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