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

Commit

Permalink
feat: allow number in nonce callback
Browse files Browse the repository at this point in the history
  • Loading branch information
KATT committed Sep 30, 2023
1 parent a40c2bd commit 56c81ec
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit 56c81ec

Please sign in to comment.