mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-07-04 09:10:09 +00:00
Merge pull request #34549 from dolezel/multy
[multy]: TS definitions for multy
This commit is contained in:
22
types/multy/index.d.ts
vendored
Normal file
22
types/multy/index.d.ts
vendored
Normal file
@@ -0,0 +1,22 @@
|
||||
// Type definitions for multy 0.1
|
||||
// Project: https://github.com/eduardorfs/multy
|
||||
// Definitions by: Jan Dolezel <https://github.com/dolezel>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.4
|
||||
|
||||
import * as Koa from "koa";
|
||||
import * as busboy from "busboy";
|
||||
|
||||
declare module "koa" {
|
||||
interface Request {
|
||||
body: any;
|
||||
}
|
||||
}
|
||||
|
||||
declare namespace multy {
|
||||
type Options = busboy.BusboyConfig;
|
||||
}
|
||||
|
||||
declare function multy(opts?: multy.Options): Koa.Middleware;
|
||||
|
||||
export = multy;
|
||||
3
types/multy/multy-tests.ts
Normal file
3
types/multy/multy-tests.ts
Normal file
@@ -0,0 +1,3 @@
|
||||
import createMultyMiddleware = require("multy");
|
||||
|
||||
const middleware = createMultyMiddleware();
|
||||
24
types/multy/tsconfig.json
Normal file
24
types/multy/tsconfig.json
Normal file
@@ -0,0 +1,24 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6",
|
||||
"dom"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"strictFunctionTypes": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"multy-tests.ts"
|
||||
]
|
||||
}
|
||||
1
types/multy/tslint.json
Normal file
1
types/multy/tslint.json
Normal file
@@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Reference in New Issue
Block a user