Skip to content

Commit 0801343

Browse files
nullndrroggervalf
authored andcommitted
fix: fix error for the Promise type
1 parent fc00af2 commit 0801343

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/types/serialize.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export type Serialize<T> =
3333
* JSON.stringify returns always `{}` for a `Promise`
3434
*/
3535
T extends Promise<unknown>
36-
? '{}'
36+
? EmptyObject
3737
: /**
3838
* Map
3939
*/

0 commit comments

Comments
 (0)