Skip to content

Commit

Permalink
[koa-mount] version bump (DefinitelyTyped#22873)
Browse files Browse the repository at this point in the history
* version fix and dtslint

* dtslint
  • Loading branch information
tlaziuk authored and weswigham committed Jan 18, 2018
1 parent 5fef2db commit 9b9df23
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 89 deletions.
11 changes: 4 additions & 7 deletions types/koa-mount/index.d.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
// Type definitions for koa-mount v2.0.0
// Type definitions for koa-mount 3.0
// Project: https://github.com/koajs/mount
// Definitions by: AmirSaber Sharifi <https://github.com/amirsaber>
// Tomek Łaziuk <https://github.com/tlaziuk>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.3

import * as Koa from "koa";

declare function mount(app: Koa.Middleware): Koa.Middleware;
declare function mount(app: Koa.Middleware | Koa): Koa.Middleware;

declare function mount(app: Koa): Koa.Middleware;

declare function mount(prefix: string, app: Koa.Middleware): Koa.Middleware;

declare function mount(prefix: string, app: Koa): Koa.Middleware;
declare function mount(prefix: string, app: Koa.Middleware | Koa): Koa.Middleware;

declare namespace mount { }

Expand Down
6 changes: 1 addition & 5 deletions types/koa-mount/koa-mount-tests.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,11 @@



import * as Koa from "koa";
import * as mount from "koa-mount";

const a = new Koa();

a.use((next) => {
this.body = "Hello";
})
});

const b = new Koa();

Expand All @@ -23,4 +20,3 @@ app.use(mount("/world", b));

app.listen(3000);
console.log("listening on port 3000");

78 changes: 1 addition & 77 deletions types/koa-mount/tslint.json
Original file line number Diff line number Diff line change
@@ -1,79 +1,3 @@
{
"extends": "dtslint/dt.json",
"rules": {
"adjacent-overload-signatures": false,
"array-type": false,
"arrow-return-shorthand": false,
"ban-types": false,
"callable-types": false,
"comment-format": false,
"dt-header": false,
"eofline": false,
"export-just-namespace": false,
"import-spacing": false,
"interface-name": false,
"interface-over-type-literal": false,
"jsdoc-format": false,
"max-line-length": false,
"member-access": false,
"new-parens": false,
"no-any-union": false,
"no-boolean-literal-compare": false,
"no-conditional-assignment": false,
"no-consecutive-blank-lines": false,
"no-construct": false,
"no-declare-current-package": false,
"no-duplicate-imports": false,
"no-duplicate-variable": false,
"no-empty-interface": false,
"no-for-in-array": false,
"no-inferrable-types": false,
"no-internal-module": false,
"no-irregular-whitespace": false,
"no-mergeable-namespace": false,
"no-misused-new": false,
"no-namespace": false,
"no-object-literal-type-assertion": false,
"no-padding": false,
"no-redundant-jsdoc": false,
"no-redundant-jsdoc-2": false,
"no-redundant-undefined": false,
"no-reference-import": false,
"no-relative-import-in-test": false,
"no-self-import": false,
"no-single-declare-module": false,
"no-string-throw": false,
"no-unnecessary-callback-wrapper": false,
"no-unnecessary-class": false,
"no-unnecessary-generics": false,
"no-unnecessary-qualifier": false,
"no-unnecessary-type-assertion": false,
"no-useless-files": false,
"no-var-keyword": false,
"no-var-requires": false,
"no-void-expression": false,
"no-trailing-whitespace": false,
"object-literal-key-quotes": false,
"object-literal-shorthand": false,
"one-line": false,
"one-variable-per-declaration": false,
"only-arrow-functions": false,
"prefer-conditional-expression": false,
"prefer-const": false,
"prefer-declare-function": false,
"prefer-for-of": false,
"prefer-method-signature": false,
"prefer-template": false,
"radix": false,
"semicolon": false,
"space-before-function-paren": false,
"space-within-parens": false,
"strict-export-declare-modifiers": false,
"trim-file": false,
"triple-equals": false,
"typedef-whitespace": false,
"unified-signatures": false,
"void-return": false,
"whitespace": false
}
"extends": "dtslint/dt.json"
}

0 comments on commit 9b9df23

Please sign in to comment.