Skip to content

Commit 48e4f03

Browse files
committed
fix(exports): export types
1 parent a4f02d2 commit 48e4f03

File tree

1 file changed

+26
-9
lines changed

1 file changed

+26
-9
lines changed

lib/index.ts

Lines changed: 26 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,34 @@ import {
1919
import { ono } from "@jsdevtools/ono";
2020
import maybe from "./util/maybe.js";
2121
import type { ParserOptions } from "./options.js";
22-
import type { $RefsCallback, JSONSchema, SchemaCallback } from "./types/index.js";
22+
import type {
23+
Plugin,
24+
$RefsCallback,
25+
JSONSchema,
26+
SchemaCallback,
27+
HTTPResolverOptions,
28+
FileInfo,
29+
ResolverOptions,
30+
JSONSchemaObject,
31+
} from "./types/index.js";
2332

24-
export { JSONParserError };
25-
export { InvalidPointerError };
26-
export { MissingPointerError };
27-
export { ResolverError };
28-
export { ParserError };
29-
export { UnmatchedParserError };
30-
export { UnmatchedResolverError };
33+
export {
34+
JSONSchemaObject,
35+
ResolverOptions,
36+
ParserError,
37+
UnmatchedResolverError,
38+
ResolverError,
39+
HTTPResolverOptions,
40+
FileInfo,
41+
UnmatchedParserError,
42+
ParserOptions,
43+
MissingPointerError,
44+
InvalidPointerError,
45+
JSONParserError,
46+
Plugin,
47+
};
3148

32-
type RefParserSchema = string | JSONSchema;
49+
export type RefParserSchema = string | JSONSchema;
3350

3451
/**
3552
* This class parses a JSON schema, builds a map of its JSON references and their resolved values,

0 commit comments

Comments
 (0)