Merge pull request #21737 from absolux/master

Add missing exports for type-is
This commit is contained in:
Armando Aguirre
2017-12-01 13:21:07 -08:00
committed by GitHub

View File

@@ -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;
}