mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-06-01 03:20:46 +08:00
Merge pull request #21737 from absolux/master
Add missing exports for type-is
This commit is contained in:
2
types/type-is/index.d.ts
vendored
2
types/type-is/index.d.ts
vendored
@@ -13,7 +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 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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user