From 26e9b494994053a49cb99d734b0d55064d04efac Mon Sep 17 00:00:00 2001 From: Alex Mikhalev Date: Sun, 19 Aug 2018 19:28:38 -0600 Subject: [PATCH] Use npm @types/module-alias --- package.json | 1 + server/types/module-alias.d.ts | 12 ------------ yarn.lock | 4 ++++ 3 files changed, 5 insertions(+), 12 deletions(-) delete mode 100644 server/types/module-alias.d.ts diff --git a/package.json b/package.json index ff90c28..f1212a8 100644 --- a/package.json +++ b/package.json @@ -65,6 +65,7 @@ "@types/express": "^4.16.0", "@types/jsonwebtoken": "^7.2.8", "@types/lodash": "^4.14.116", + "@types/module-alias": "^2.0.0", "@types/node": "^10.5.7", "@types/object-assign": "^4.0.30", "@types/pino": "^4.16.1", diff --git a/server/types/module-alias.d.ts b/server/types/module-alias.d.ts deleted file mode 100644 index 837d13b..0000000 --- a/server/types/module-alias.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -declare module "module-alias" { - interface ModuleAlias { - addAlias(shortName: string, longName: string): void; - addAliases(aliases: { [shortName: string]: string }): void; - addPath(moduleDirectory: string): void; - (packageJson: string): void; - (): void; - } - - const moduleAlias: ModuleAlias; - export = moduleAlias; -} \ No newline at end of file diff --git a/yarn.lock b/yarn.lock index ef0771d..c59aac5 100644 --- a/yarn.lock +++ b/yarn.lock @@ -89,6 +89,10 @@ version "2.0.0" resolved "https://registry.yarnpkg.com/@types/mime/-/mime-2.0.0.tgz#5a7306e367c539b9f6543499de8dd519fac37a8b" +"@types/module-alias@^2.0.0": + version "2.0.0" + resolved "https://registry.yarnpkg.com/@types/module-alias/-/module-alias-2.0.0.tgz#882668f8b8cdbda44812c3b592c590909e18849e" + "@types/node@*", "@types/node@^10.5.7": version "10.5.7" resolved "https://registry.yarnpkg.com/@types/node/-/node-10.5.7.tgz#960d9feb3ade2233bcc9843c918d740b4f78a7cf"