From 8ef8325613d5c2e666377d216749fe8e2115b3fb Mon Sep 17 00:00:00 2001 From: Kyle McDonald Date: Mon, 28 Jul 2025 12:24:24 -0500 Subject: [PATCH] fix: type issue where barrel exported functions could not be imported without a type error --- .changeset/empty-islands-punch.md | 5 +++++ src/index.ts | 19 ++++++++++++++++--- 2 files changed, 21 insertions(+), 3 deletions(-) create mode 100644 .changeset/empty-islands-punch.md diff --git a/.changeset/empty-islands-punch.md b/.changeset/empty-islands-punch.md new file mode 100644 index 0000000..e36cd1f --- /dev/null +++ b/.changeset/empty-islands-punch.md @@ -0,0 +1,5 @@ +--- +"codemirror-json-schema": patch +--- + +Fixed type issue where barrel exported functions could not be imported without a type error diff --git a/src/index.ts b/src/index.ts index 8713564..a660559 100644 --- a/src/index.ts +++ b/src/index.ts @@ -27,7 +27,20 @@ export type { JSONPartialPointerData, } from "./types"; -export * from "./parsers/json-parser"; -export * from "./utils/json-pointers"; +export { + parseJSONDocumentState, + parseJSONDocument, +} from "./parsers/json-parser"; + +export { + getJsonPointerAt, + jsonPointerForPosition, + getJsonPointers, +} from "./utils/json-pointers"; -export * from "./features/state"; +export { + schemaStateField, + updateSchema, + getJSONSchema, + stateExtensions, +} from "./features/state";