UNPKG

@squiz/json-schema-library

Version:

Customizable and hackable json-validator and json-schema utilities for traversal, data generation and validation

13 lines (12 loc) 355 B
import { JSONSchema, JSONPointer } from "../types"; type TypeDef = { pointer: JSONPointer; def: unknown; }; /** * Returns a list of all (direct) type definitions from the given schema * @param schema * @return list of type definition, given as { pointer, def } */ export default function getTypeDefs(schema: JSONSchema): TypeDef[]; export {};