[connect-busboy] Typing for version 0.0 (#22624)

This commit is contained in:
PINGUET Julien
2018-01-02 23:38:45 +01:00
committed by Mohamed Hegazy
parent 0cc2b9db9a
commit 22a1b4ed61
4 changed files with 48 additions and 0 deletions

View 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
View 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;

View 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"
]
}

View File

@@ -0,0 +1 @@
{ "extends": "dtslint/dt.json" }