mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-10-04 06:47:03 +00:00
Merge pull request #21737 from absolux/master
Add missing exports for type-is
This commit is contained in:
Vendored
+2
@@ -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