mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
Add typings for connect-trim-body npm module (#36211)
* Add typings for connect-trim-body npm module * Remove patch version from header
This commit is contained in:
parent
c70052078f
commit
289c140c20
6
types/connect-trim-body/connect-trim-body-tests.ts
Normal file
6
types/connect-trim-body/connect-trim-body-tests.ts
Normal file
@ -0,0 +1,6 @@
|
||||
import connectTrimBody from 'connect-trim-body';
|
||||
import express from 'express';
|
||||
|
||||
const app = express();
|
||||
|
||||
app.use(connectTrimBody());
|
||||
11
types/connect-trim-body/index.d.ts
vendored
Normal file
11
types/connect-trim-body/index.d.ts
vendored
Normal file
@ -0,0 +1,11 @@
|
||||
// Type definitions for connect-trim-body 0.0
|
||||
// Project: https://github.com/samora/connect-trim-body
|
||||
// Definitions by: Levi Bostian <https://github.com/levibostian>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.7
|
||||
|
||||
import { RequestHandler } from "express";
|
||||
|
||||
declare function connectTrimBodyMiddleware(): RequestHandler;
|
||||
|
||||
export = connectTrimBodyMiddleware;
|
||||
24
types/connect-trim-body/tsconfig.json
Normal file
24
types/connect-trim-body/tsconfig.json
Normal file
@ -0,0 +1,24 @@
|
||||
{
|
||||
"compilerOptions": {
|
||||
"module": "commonjs",
|
||||
"lib": [
|
||||
"es6"
|
||||
],
|
||||
"noImplicitAny": true,
|
||||
"noImplicitThis": true,
|
||||
"strictNullChecks": true,
|
||||
"strictFunctionTypes": true,
|
||||
"baseUrl": "../",
|
||||
"typeRoots": [
|
||||
"../"
|
||||
],
|
||||
"types": [],
|
||||
"noEmit": true,
|
||||
"forceConsistentCasingInFileNames": true,
|
||||
"esModuleInterop": true
|
||||
},
|
||||
"files": [
|
||||
"index.d.ts",
|
||||
"connect-trim-body-tests.ts"
|
||||
]
|
||||
}
|
||||
3
types/connect-trim-body/tslint.json
Normal file
3
types/connect-trim-body/tslint.json
Normal file
@ -0,0 +1,3 @@
|
||||
{
|
||||
"extends": "dtslint/dt.json"
|
||||
}
|
||||
Loading…
Reference in New Issue
Block a user