@naturalcycles/nodejs-lib
Version:
Standard library for Node.js
9 lines (8 loc) • 355 B
TypeScript
import type { AnyObject } from '@naturalcycles/js-lib/types';
import type { JsonSchema } from '../jSchema.js';
/**
* Each row must be an object (current limitation).
*
* `additionalProperties` is set to `true`, cause it's safer.
*/
export declare function generateJsonSchemaFromData<T extends AnyObject = AnyObject>(rows: AnyObject[]): JsonSchema<T>;