Skip to content

Commit

Permalink
Correct types for @types/node@12.12.62
Browse files Browse the repository at this point in the history
  • Loading branch information
dex4er committed Oct 4, 2020
1 parent cd06b09 commit 5b0ff78
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
@@ -1,5 +1,9 @@
# Changelog

## v3.0.0 YYYY-mm-dd

- Correct typings for updates @types/node.

## v2.1.4 2019-10-08

- Bugfix `mocha-steps` wrapper for testing.
Expand Down
2 changes: 1 addition & 1 deletion package.json
Expand Up @@ -31,7 +31,7 @@
"@types/chai": "^4.2.3",
"@types/dirty-chai": "^2.0.2",
"@types/mocha": "^5.2.7",
"@types/node": "^12.7.11",
"@types/node": "^12.12.62",
"chai": "^4.2.0",
"changelog-parser": "^2.8.0",
"coveralls": "^3.0.6",
Expand Down
6 changes: 5 additions & 1 deletion test/lib/mock-fs.ts
Expand Up @@ -146,7 +146,11 @@ export function mkdir(
callback = options
} else if (typeof options === "object") {
const makeDirectoryOptions = options as fs.MakeDirectoryOptions
mode = makeDirectoryOptions.mode || 0o777
if (typeof makeDirectoryOptions.mode === "number") {
mode = makeDirectoryOptions.mode || 0o777
} else {
mode = parseInt(makeDirectoryOptions.mode!, 8) || 0o777
}
recursive = makeDirectoryOptions.recursive || false
}
if (recursive) {
Expand Down

0 comments on commit 5b0ff78

Please sign in to comment.