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

Commit

Permalink
types: fix new type signature for TsonType
Browse files Browse the repository at this point in the history
  • Loading branch information
helmturner committed Nov 25, 2023
1 parent f588184 commit 78491c8
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/sync/syncTypes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,10 @@ export type TsonType<
* JSON-serializable value how it's stored after it's serialized
*/
TSerializedType extends SerializedType,
> = TsonTypeTester & TsonMarshaller<TValue, TSerializedType>;
> =
| (TsonTypeTesterCustom & TsonMarshaller<TValue, TSerializedType>)
| (TsonTypeTesterPrimitive &
Partial<TsonMarshaller<TValue, TSerializedType>>);

export interface TsonOptions {
/* eslint-disable jsdoc/informative-docs */
Expand Down

0 comments on commit 78491c8

Please sign in to comment.