Skip to content

Commit

Permalink
Fix TypeScript type-check issues
Browse files Browse the repository at this point in the history
  • Loading branch information
watson committed Apr 24, 2020
1 parent abd5593 commit 4c97026
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@
"**/@types/hapi": "^17.0.18",
"**/@types/angular": "^1.6.56",
"**/@types/hoist-non-react-statics": "^3.3.1",
"**/@types/chai": "^4.2.11",
"**/typescript": "3.7.2",
"**/graphql-toolkit/lodash": "^4.17.13",
"**/hoist-non-react-statics": "^3.3.2",
Expand Down
4 changes: 2 additions & 2 deletions src/es_archiver/actions/rebuild_all.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
*/

import { resolve, dirname, relative } from 'path';
import { stat, rename, createReadStream, createWriteStream } from 'fs';
import { stat, Stats, rename, createReadStream, createWriteStream } from 'fs';
import { Readable, Writable } from 'stream';
import { fromNode } from 'bluebird';
import { ToolingLog } from '@kbn/dev-utils';
Expand All @@ -33,7 +33,7 @@ import {
} from '../lib';

async function isDirectory(path: string): Promise<boolean> {
const stats = await fromNode(cb => stat(path, cb));
const stats: Stats = await fromNode(cb => stat(path, cb));
return stats.isDirectory();
}

Expand Down
7 changes: 1 addition & 6 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3783,16 +3783,11 @@
"@types/chai" "*"
"@types/jquery" "*"

"@types/chai@*":
"@types/chai@*", "@types/[email protected]", "@types/chai@^4.2.11":
version "4.2.11"
resolved "https://registry.yarnpkg.com/@types/chai/-/chai-4.2.11.tgz#d3614d6c5f500142358e6ed24e1bf16657536c50"
integrity sha512-t7uW6eFafjO+qJ3BIV2gGUyZs27egcNRkUdalkud+Qa3+kg//f129iuOFivHDXQ+vnU3fDXuwgv0cqMCbcE8sw==

"@types/[email protected]":
version "4.2.7"
resolved "https://registry.yarnpkg.com/@types/chai/-/chai-4.2.7.tgz#1c8c25cbf6e59ffa7d6b9652c78e547d9a41692d"
integrity sha512-luq8meHGYwvky0O7u0eQZdA7B4Wd9owUCqvbw2m3XCrCU8mplYOujMBbvyS547AxJkC+pGnd0Cm15eNxEUNU8g==

"@types/chance@^1.0.0":
version "1.0.1"
resolved "https://registry.yarnpkg.com/@types/chance/-/chance-1.0.1.tgz#c10703020369602c40dd9428cc6e1437027116df"
Expand Down

0 comments on commit 4c97026

Please sign in to comment.