Skip to content
This repository has been archived by the owner on Jul 5, 2024. It is now read-only.

Commit

Permalink
feat: expose TsonSerialized type (#83)
Browse files Browse the repository at this point in the history
  • Loading branch information
juliusmarminge authored Oct 29, 2023
1 parent 7db3458 commit 4cf7fef
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
6 changes: 5 additions & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,11 @@ export { createTson } from "./sync/createTson.js";
export { createTsonDeserialize, createTsonParser } from "./sync/deserialize.js";
export { createTsonSerialize, createTsonStringify } from "./sync/serialize.js";
export type { TsonType } from "./sync/syncTypes.js";
export type { TsonOptions } from "./sync/syncTypes.js";
export type {
TsonOptions,
TsonSerialized,
TsonStringified,
} from "./sync/syncTypes.js";

// type handlers
export * from "./sync/handlers/tsonBigint.js";
Expand Down
2 changes: 1 addition & 1 deletion src/sync/syncTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ export type TsonDeserializeFn = <TValue>(
data: TsonSerialized<TValue>,
) => TValue;

type TsonStringified<TValue> = string & { [serialized]: TValue };
export type TsonStringified<TValue> = string & { [serialized]: TValue };

export type TsonStringifyFn = <TValue>(
obj: TValue,
Expand Down

0 comments on commit 4cf7fef

Please sign in to comment.