From 28e81b93b43515da235feef8417ea7bea4fb5c2d Mon Sep 17 00:00:00 2001 From: Alexander T Date: Mon, 28 Oct 2019 17:54:05 +0200 Subject: [PATCH] koa-pug: Provides its own types (#39452) --- notNeededPackages.json | 6 +++++ types/koa-pug/index.d.ts | 44 ---------------------------------- types/koa-pug/koa-pug-tests.ts | 0 types/koa-pug/tsconfig.json | 23 ------------------ types/koa-pug/tslint.json | 6 ----- 5 files changed, 6 insertions(+), 73 deletions(-) delete mode 100644 types/koa-pug/index.d.ts delete mode 100644 types/koa-pug/koa-pug-tests.ts delete mode 100644 types/koa-pug/tsconfig.json delete mode 100644 types/koa-pug/tslint.json diff --git a/notNeededPackages.json b/notNeededPackages.json index 31d7f5801b..6d8eafa46a 100644 --- a/notNeededPackages.json +++ b/notNeededPackages.json @@ -1884,6 +1884,12 @@ "sourceRepoURL": "https://github.com/koajs/jwt", "asOfVersion": "3.3.0" }, + { + "libraryName": "koa-pug", + "typingsPackageName": "koa-pug", + "sourceRepoURL": "https://github.com/chrisyip/koa-pug", + "asOfVersion": "4.0.0" + }, { "libraryName": "lambda-phi", "typingsPackageName": "lambda-phi", diff --git a/types/koa-pug/index.d.ts b/types/koa-pug/index.d.ts deleted file mode 100644 index 62352af7c0..0000000000 --- a/types/koa-pug/index.d.ts +++ /dev/null @@ -1,44 +0,0 @@ -// Type definitions for koa-pug 3.0 -// Project: https://github.com/chrisyip/koa-pug -// Definitions by: Xavier Stouder -// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped -// TypeScript Version: 2.3 - -import * as koa from "koa"; - -export = Pug; - -/** main module */ -declare class Pug { - locals: { - [key: string]: any; - }; - constructor(options?: Pug.PugOptions); - use(app: koa): void; -} - -declare namespace Pug { - interface PugOptions { - viewPath?: string; - pretty?: boolean; - compileDebug?: boolean; - debug?: boolean; - locals?: PugLocals; - noCache?: boolean; - helperPath?: string | Array; - basedir?: string; - app?: koa; - } - interface PugCtxOptions extends PugOptions { - fromString: boolean; - } - interface PugLocals { [str: string]: any; } -} - -/** plugin */ -declare module 'koa' { - interface Context { - render(viewPath: string, locals?: Pug.PugLocals, overrideOpts?: Pug.PugCtxOptions, noCache?: boolean): void; - render(viewPath: string, locals?: Pug.PugLocals, overrideOpts?: boolean): void; - } -} diff --git a/types/koa-pug/koa-pug-tests.ts b/types/koa-pug/koa-pug-tests.ts deleted file mode 100644 index e69de29bb2..0000000000 diff --git a/types/koa-pug/tsconfig.json b/types/koa-pug/tsconfig.json deleted file mode 100644 index ac317cd48f..0000000000 --- a/types/koa-pug/tsconfig.json +++ /dev/null @@ -1,23 +0,0 @@ -{ - "compilerOptions": { - "module": "commonjs", - "lib": [ - "es6" - ], - "noImplicitAny": true, - "noImplicitThis": true, - "strictNullChecks": true, - "strictFunctionTypes": true, - "baseUrl": "../", - "typeRoots": [ - "../" - ], - "types": [], - "noEmit": true, - "forceConsistentCasingInFileNames": true - }, - "files": [ - "index.d.ts", - "koa-pug-tests.ts" - ] -} \ No newline at end of file diff --git a/types/koa-pug/tslint.json b/types/koa-pug/tslint.json deleted file mode 100644 index 946997cb87..0000000000 --- a/types/koa-pug/tslint.json +++ /dev/null @@ -1,6 +0,0 @@ -{ - "extends": "dtslint/dt.json", - "rules": { - "no-useless-files": false - } -}