Skip to content

Commit

Permalink
fix: fix error for the Promise type
Browse files Browse the repository at this point in the history
  • Loading branch information
nullndr authored and roggervalf committed Sep 13, 2024
1 parent fc00af2 commit 0801343
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types/serialize.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export type Serialize<T> =
* JSON.stringify returns always `{}` for a `Promise`
*/
T extends Promise<unknown>
? '{}'
? EmptyObject
: /**
* Map
*/
Expand Down

0 comments on commit 0801343

Please sign in to comment.