Skip to content

Commit

Permalink
fix(exports): export types
Browse files Browse the repository at this point in the history
  • Loading branch information
jonluca committed Mar 5, 2024
1 parent a4f02d2 commit 48e4f03
Showing 1 changed file with 26 additions and 9 deletions.
35 changes: 26 additions & 9 deletions lib/index.ts
Expand Up @@ -19,17 +19,34 @@ import {
import { ono } from "@jsdevtools/ono";
import maybe from "./util/maybe.js";
import type { ParserOptions } from "./options.js";
import type { $RefsCallback, JSONSchema, SchemaCallback } from "./types/index.js";
import type {
Plugin,
$RefsCallback,
JSONSchema,
SchemaCallback,
HTTPResolverOptions,
FileInfo,
ResolverOptions,
JSONSchemaObject,
} from "./types/index.js";

export { JSONParserError };
export { InvalidPointerError };
export { MissingPointerError };
export { ResolverError };
export { ParserError };
export { UnmatchedParserError };
export { UnmatchedResolverError };
export {
JSONSchemaObject,
ResolverOptions,
ParserError,
UnmatchedResolverError,
ResolverError,
HTTPResolverOptions,
FileInfo,
UnmatchedParserError,
ParserOptions,
MissingPointerError,
InvalidPointerError,
JSONParserError,
Plugin,
};

type RefParserSchema = string | JSONSchema;
export type RefParserSchema = string | JSONSchema;

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

0 comments on commit 48e4f03

Please sign in to comment.