From 120dbdb0e2224f5cc69b0ae6db9a8d818fe07c34 Mon Sep 17 00:00:00 2001 From: Dave Wasmer Date: Sat, 3 Feb 2018 12:49:52 -0700 Subject: [PATCH] Fix accepts.encodings parameters --- types/accepts/index.d.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/types/accepts/index.d.ts b/types/accepts/index.d.ts index 33ee0db8a1..0b36e3b640 100644 --- a/types/accepts/index.d.ts +++ b/types/accepts/index.d.ts @@ -24,6 +24,7 @@ declare namespace accepts { /** * Return the first accepted encoding. If nothing in `encodings` is accepted, then `false` is returned. */ + encoding(): string[]; encoding(encodings: string[]): string | false; encoding(...encodings: string[]): string | false; @@ -31,6 +32,8 @@ declare namespace accepts { * Return the encodings that the request accepts, in the order of the client's preference (most preferred first). */ encodings(): string[]; + encodings(encodings: string[]): string | false; + encodings(...encodings: string[]): string | false; /** * Return the first accepted language. If nothing in `languages` is accepted, then `false` is returned.