mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-04-23 04:49:15 +08:00
Fix tslint issue
This commit is contained in:
committed by
GitHub
parent
f0795a3470
commit
e6862574f9
4
types/type-is/index.d.ts
vendored
4
types/type-is/index.d.ts
vendored
@@ -13,9 +13,9 @@ declare function typeIs(request: IncomingMessage, types: string[]): string | fal
|
||||
declare function typeIs(request: IncomingMessage, ...types: string[]): string | false | null;
|
||||
|
||||
declare namespace typeIs {
|
||||
function normalize (type: string): string | false;
|
||||
function normalize(type: string): string | false;
|
||||
function hasBody(request: IncomingMessage): boolean;
|
||||
function is(mediaType: string, types: string[]): string | false;
|
||||
function is(mediaType: string, ...types: string[]): string | false;
|
||||
function mimeMatch (expected: false | string, actual: string): boolean;
|
||||
function mimeMatch(expected: false | string, actual: string): boolean;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user