UNPKG

json-schema-describes-subset

Version:

Tools for static JSON schema analysis, including functions to determine if one schema describes a subset of another or if a schema describes the empty set or to convert a schema to its disjunctive normal form (DNF).

11 lines (10 loc) 469 B
export type Constructor = new (...args: any[]) => object; export declare class InstancesByConstructor { #private; constructor(instances?: Iterable<object> | undefined); push(...instances: object[]): void; get<Constructor_ extends Constructor>(constructor: Constructor_): InstanceType<Constructor_>[]; has(constructor: Constructor): boolean; delete(constructor: Constructor): boolean; getConstructors(): MapIterator<object['constructor']>; }