diff --git a/src/index.ts b/src/index.ts index 8c92aca7..35071573 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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"; diff --git a/src/sync/syncTypes.ts b/src/sync/syncTypes.ts index f5d33d5d..bb45241c 100644 --- a/src/sync/syncTypes.ts +++ b/src/sync/syncTypes.ts @@ -123,7 +123,7 @@ export type TsonDeserializeFn = ( data: TsonSerialized, ) => TValue; -type TsonStringified = string & { [serialized]: TValue }; +export type TsonStringified = string & { [serialized]: TValue }; export type TsonStringifyFn = ( obj: TValue,