Skip to content

Commit

Permalink
export 'type's explicitly / bun compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
endel committed Sep 9, 2023
1 parent 6101b39 commit fff71a3
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
export { Schema, DataChange } from "./Schema";
export { Schema } from "./Schema";
export type { DataChange } from "./Schema";

import { MapSchema } from "./types/MapSchema"
export { MapSchema };
Expand All @@ -24,7 +25,7 @@ registerType("collection", { constructor: CollectionSchema, });
export { dumpChanges } from "./utils";

// Encoder / Decoder
export { Iterator } from "./encoding/decode";
export type { Iterator } from "./encoding/decode";
import * as encode from "./encoding/encode";
import * as decode from "./encoding/decode";
export { encode, decode };
Expand All @@ -47,12 +48,14 @@ export {

// Internals
SchemaDefinition,

// Types
Context,
} from "./annotations";

// Annotation types
export type {
DefinitionType,
PrimitiveType,
Definition,
DefinitionType,
FilterCallback,
} from "./annotations";

Expand Down

0 comments on commit fff71a3

Please sign in to comment.