Skip to content

Commit

Permalink
chore(typescript): update to typescript 4 (#611)
Browse files Browse the repository at this point in the history
BREAKING CHANGE: typescript >= 4.0.2 is required to use ts-auto-mock
Update your typescript dependency to version >= 4.0.2
  • Loading branch information
uittorio authored Dec 25, 2020
1 parent b8f84ba commit 8373ec5
Show file tree
Hide file tree
Showing 5 changed files with 45 additions and 22 deletions.
48 changes: 35 additions & 13 deletions definitelyTypedTests/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions definitelyTypedTests/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@
"dependencies": {
"cross-var": "^1.1.0",
"dotenv": "^8.2.0",
"ttypescript": "^1.5.10",
"typescript": "^3.9.7",
"upath": "^1.2.0"
"ttypescript": "^1.5.12",
"typescript": "^4.1.3",
"upath": "^2.0.1"
}
}
6 changes: 3 additions & 3 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,7 @@
"ts-node": "^9.1.1",
"tsconfig-paths": "^3.9.0",
"ttypescript": "1.5.12",
"typescript": "^3.9.7",
"typescript": "^4.1.3",
"webpack": "^5.10.1",
"webpack-cli": "^4.2.0",
"webpack-merge": "^5.7.0",
Expand All @@ -99,7 +99,7 @@
"winston": "^3.3.3"
},
"peerDependencies": {
"typescript": "^3.9.5"
"typescript": "^4.0.2"
},
"husky": {
"hooks": {
Expand Down
3 changes: 2 additions & 1 deletion src/extension/method/function.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ export function isFunction(
functionToCheck: unknown
): functionToCheck is Function {
return (
functionToCheck && {}.toString.call(functionToCheck) === '[object Function]'
!!functionToCheck &&
{}.toString.call(functionToCheck) === '[object Function]'
);
}

0 comments on commit 8373ec5

Please sign in to comment.