Skip to content

Commit

Permalink
scope the ts-config changes to browser package
Browse files Browse the repository at this point in the history
  • Loading branch information
pooyaj committed Dec 8, 2022
1 parent 8249457 commit fc675b8
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 4 deletions.
3 changes: 2 additions & 1 deletion packages/browser/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,8 @@
"baseUrl": "./src",
"paths": {
"@/*": ["./*"]
}
},
"keyofStringsOnly": true
},
"exclude": ["node_modules", "dist"]
}
4 changes: 3 additions & 1 deletion packages/core/src/validation/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,9 @@ export function isFunction(obj: unknown): obj is Function {
return typeof obj === 'function'
}

export function isPlainObject(obj: unknown): obj is Record<string, any> {
export function isPlainObject(
obj: unknown
): obj is Record<string | symbol | number, any> {
return (
Object.prototype.toString.call(obj).slice(8, -1).toLowerCase() === 'object'
)
Expand Down
3 changes: 1 addition & 2 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,7 @@
"esModuleInterop": true,
"skipLibCheck": true,
"noUnusedLocals": true,
"noUnusedParameters": true,
"keyofStringsOnly": true
"noUnusedParameters": true
},
"ts-node": {
"transpileOnly": true,
Expand Down

0 comments on commit fc675b8

Please sign in to comment.