UNPKG

typescript-scaffolder

Version:

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

14 lines 479 B
/** * 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