mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 04:49:15 +08:00
[connect-busboy] Typing for version 0.0 (#22624)
This commit is contained in:
committed by
Mohamed Hegazy
parent
0cc2b9db9a
commit
22a1b4ed61
6
types/connect-busboy/connect-busboy-tests.ts
Normal file
6
types/connect-busboy/connect-busboy-tests.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
import * as connectBusboy from 'connect-busboy';
|
||||
|
||||
import * as express from 'express';
|
||||
|
||||
const options: connectBusboy.ConnectBusboyOptions = { immediate: true };
|
||||
const result: express.RequestHandler = connectBusboy(options);
|
||||
18
types/connect-busboy/index.d.ts
vendored
Normal file
18
types/connect-busboy/index.d.ts
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
// Type definitions for connect-busboy 0.0
|
||||
// Project: https://github.com/mscdex/connect-busboy
|
||||
// Definitions by: Pinguet62 <https://github.com/pinguet62>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.2
|
||||
|
||||
import * as busboy from 'busboy';
|
||||
import { RequestHandler } from 'express';
|
||||
|
||||
declare function connectBusboy(options?: connectBusboy.ConnectBusboyOptions): RequestHandler;
|
||||
|
||||
declare namespace connectBusboy {
|
||||
interface ConnectBusboyOptions extends busboy.BusboyConfig {
|
||||
immediate?: boolean;
|
||||
}
|
||||
}
|
||||
|
||||
export = connectBusboy;
|
||||
23
types/connect-busboy/tsconfig.json
Normal file
23
types/connect-busboy/tsconfig.json
Normal file
@@ -0,0 +1,23 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"strictFunctionTypes": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"connect-busboy-tests.ts"
|
||||
]
|
||||
}
|
||||
1
types/connect-busboy/tslint.json
Normal file
1
types/connect-busboy/tslint.json
Normal file
@@ -0,0 +1 @@
|
||||
{ "extends": "dtslint/dt.json" }
|
||||
Reference in New Issue
Block a user