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).
5 lines (4 loc) • 327 B
TypeScript
export declare function splitToLines(text: string): string[];
export declare function mapLines(text: string, mapFunction: (line: string) => string): string;
export declare function makeWhitespacesPlain(text: string): string;
export declare function removePrefix(string: string, prefix: string, offset?: number): string | null;