Enables strict mode in nextjs apps (#2354)
- We need this so zod works correctly Co-authored-by: Peer Richelsen <[email protected]>
This commit is contained in:
1 parent
4ff21deb89
commit
a7f5250b4a
25 files changed
+178
-68
No files matched your search
@@ -0,0 +1,7 @@
|
||||
/**
|
||||
* A correctly typed version of Object.Keys
|
||||
* @url https://twitter.com/mpocock1/status/1502264005251018754
|
||||
*/
|
||||
export const objectKeys = <Obj extends object>(obj: Obj) => Object.keys(obj) as (keyof Obj)[];
|
||||
|
||||
export default objectKeys;
|
||||
Reference in new issue
Block a user