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

feat: allow number in nonce callback #5

Merged
merged 13 commits into from
Sep 30, 2023
Merged
2 changes: 1 addition & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ export type TsonType<
> = TsonTypeTester & TsonTransformer<TValue, TSerializedType>;

export interface TsonOptions {
nonce?: () => string;
nonce?: () => number | string;
types: (TsonType<any, any> | TsonType<any, never>)[];
}

Expand Down