Skip to content

Commit

Permalink
fix: return primitive object instead of custom
Browse files Browse the repository at this point in the history
  • Loading branch information
rohmanhm committed Feb 14, 2021
1 parent 3de8da2 commit 53e872c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ export default function ox<T, U extends boolean>(
obj?: T,
strict?: U
): T extends boolean
? Object
? object
: T extends Object
? U extends false
? T
Expand Down

0 comments on commit 53e872c

Please sign in to comment.