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";