Skip to content

Commit 8ef8325

Browse files
committed
fix: type issue where barrel exported functions could not be imported without a type error
1 parent 806504f commit 8ef8325

File tree

2 files changed

+21
-3
lines changed

2 files changed

+21
-3
lines changed

.changeset/empty-islands-punch.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"codemirror-json-schema": patch
3+
---
4+
5+
Fixed type issue where barrel exported functions could not be imported without a type error

src/index.ts

Lines changed: 16 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,20 @@ export type {
2727
JSONPartialPointerData,
2828
} from "./types";
2929

30-
export * from "./parsers/json-parser";
31-
export * from "./utils/json-pointers";
30+
export {
31+
parseJSONDocumentState,
32+
parseJSONDocument,
33+
} from "./parsers/json-parser";
34+
35+
export {
36+
getJsonPointerAt,
37+
jsonPointerForPosition,
38+
getJsonPointers,
39+
} from "./utils/json-pointers";
3240

33-
export * from "./features/state";
41+
export {
42+
schemaStateField,
43+
updateSchema,
44+
getJSONSchema,
45+
stateExtensions,
46+
} from "./features/state";

0 commit comments

Comments
 (0)