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:
Omar LópezandPeer Richelsen authored and GitHub committed 2022-04-04 20:26:14 +00:00
1 parent 4ff21deb89
commit a7f5250b4a
25 files changed
+178 -68

No files matched your search

+7
View File
@@ -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;