UNPKG

@naturalcycles/js-lib

Version:

Standard library for universal (browser + Node.js) javascript

9 lines (8 loc) 352 B
import { type AnyObject } from '../../types.js'; import type { JsonSchemaObject } from '../index.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[]): JsonSchemaObject<T>;