From d8ba44143d129e89dcd05680fbf6ad2d198b49d4 Mon Sep 17 00:00:00 2001 From: Jake Date: Thu, 15 Mar 2018 22:01:07 +0000 Subject: [PATCH] Add more type definitions from types --- package-lock.json | 21 +++++++++++++++++++++ package.json | 3 +++ src/index.ts | 2 +- src/types/fakes.d.ts | 7 ------- 4 files changed, 25 insertions(+), 8 deletions(-) diff --git a/package-lock.json b/package-lock.json index abeda84..8c4f8d5 100644 --- a/package-lock.json +++ b/package-lock.json @@ -29,6 +29,12 @@ "@types/express": "4.11.1" } }, + "@types/docopt": { + "version": "0.6.31", + "resolved": "https://registry.npmjs.org/@types/docopt/-/docopt-0.6.31.tgz", + "integrity": "sha512-GvX4PhD2u/JV+BmPFXfR8F3cez8cV7WdlTzLA0gB/ckYMMmI2voIKdW3CoKC7dj1K08YC8/M5oACLj410A96fQ==", + "dev": true + }, "@types/events": { "version": "1.2.0", "resolved": "https://registry.npmjs.org/@types/events/-/events-1.2.0.tgz", @@ -92,6 +98,21 @@ "integrity": "sha512-4Ba90mWNx8ddbafuyGGwjkZMigi+AWfYLSDCpovwsE63ia8w93r3oJ8PIAQc3y8U+XHcnMOHPIzNe3o438Ywcw==", "dev": true }, + "@types/node-fetch": { + "version": "1.6.7", + "resolved": "https://registry.npmjs.org/@types/node-fetch/-/node-fetch-1.6.7.tgz", + "integrity": "sha1-UhB46PDGmhWOUCIAWsqS0mIPbVc=", + "dev": true, + "requires": { + "@types/node": "9.4.7" + } + }, + "@types/open": { + "version": "0.0.29", + "resolved": "https://registry.npmjs.org/@types/open/-/open-0.0.29.tgz", + "integrity": "sha1-PekQASZ0kJ2xTWCNH95E/6ep7Oo=", + "dev": true + }, "@types/serve-index": { "version": "1.7.29", "resolved": "https://registry.npmjs.org/@types/serve-index/-/serve-index-1.7.29.tgz", diff --git a/package.json b/package.json index 098a8a7..8557180 100644 --- a/package.json +++ b/package.json @@ -39,6 +39,9 @@ "serve-index": "1.9.1" }, "devDependencies": { + "@types/docopt": "0.6.31", + "@types/node-fetch": "1.6.7", + "@types/open": "0.0.29", "@types/chai": "4.1.2", "@types/compression": "0.0.35", "@types/express": "4.11.1", diff --git a/src/index.ts b/src/index.ts index 31138ed..787987a 100644 --- a/src/index.ts +++ b/src/index.ts @@ -2,7 +2,7 @@ import { docopt } from 'docopt'; import createServer from './server'; import getArgs from './cli'; -import * as open from 'open'; +import open from 'open'; const ARGS = getArgs(); diff --git a/src/types/fakes.d.ts b/src/types/fakes.d.ts index 593bcd0..f7282ac 100644 --- a/src/types/fakes.d.ts +++ b/src/types/fakes.d.ts @@ -3,12 +3,5 @@ declare module 'express-ip-access-control'; declare module 'connect-static-file'; declare module 'express-basic-auth'; -declare module 'winston'; // doesnt like console transport -declare module 'express-winston'; -declare module 'opbeat'; -declare module 'docopt'; -declare module 'open'; -declare module 'node-fetch'; -declare module 'chai'; declare module 'expect-ct'; declare module 'referrer-policy';