-
Notifications
You must be signed in to change notification settings - Fork 18
/
Copy pathindex.ts
41 lines (36 loc) · 1.41 KB
/
index.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
export { compileSchema } from "./src/compileSchema";
export type { CompileOptions } from "./src/compileSchema";
export type { Context, SchemaNode, GetNodeOptions } from "./src/SchemaNode";
export type { DataNode } from "./src/methods/toDataNodes";
export type { Draft, DraftVersion } from "./src/Draft";
export type { JsonError, JsonPointer, JsonSchema, OptionalNodeOrError, NodeOrError } from "./src/types";
export type {
Keyword,
ValidationPath,
JsonSchemaReducerParams,
JsonSchemaReducer,
JsonSchemaResolverParams,
JsonSchemaResolver,
JsonSchemaValidatorParams,
JsonSchemaValidator
} from "./src/Keyword";
// drafts
export { draft04 } from "./src/draft04";
export { draft06 } from "./src/draft06";
export { draft07 } from "./src/draft07";
export { draft2019 } from "./src/draft2019";
export { draftEditor } from "./src/draftEditor";
// keywords
export { oneOfFuzzyKeyword, oneOfKeyword } from "./src/keywords/oneOf";
// errors
export { render } from "./src/errors/render";
export type { ErrorData, ErrorConfig } from "./src/types";
// utilities
export { getTypeOf } from "./src/utils/getTypeOf";
export { isReduceable } from "./src/SchemaNode";
export { isJsonError, isSchemaNode } from "./src/types";
export { extendDraft, addKeywords } from "./src/Draft";
export { mergeNode } from "./src/mergeNode";
export { mergeSchema } from "./src/utils/mergeSchema";
// remotes
export { remotes } from "./remotes";