UNPKG

@squiz/json-schema-library

Version:

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

10 lines (9 loc) 281 B
import { JSONSchema } from "../types"; /** * @throws Error on multiple matches (invalid schema) * * Returns the type id of a schema object * @param schema * @return type id, if found */ export default function getTypeId(schema: JSONSchema): string | string[] | undefined;