diff options
-rw-r--r-- | packages/bun-types/globals.d.ts | 19 |
1 files changed, 1 insertions, 18 deletions
diff --git a/packages/bun-types/globals.d.ts b/packages/bun-types/globals.d.ts index 8c4ae5ab4..0c7ff0ab1 100644 --- a/packages/bun-types/globals.d.ts +++ b/packages/bun-types/globals.d.ts @@ -360,24 +360,7 @@ interface Headers { * headers.getAll("Set-Cookie"); // ["foo=bar", "baz=qux"] * ``` */ - getAll(name: string): string[]; - - /** - * Returns the `Set-Cookie` header as an array of strings - * - * Based on https://github.com/whatwg/fetch/pull/1346 - * - * @returns An array of `Set-Cookie` header values - * - * @example - * ```ts - * const headers = new Headers(); - * headers.append("Set-Cookie", "foo=bar"); - * headers.append("Set-Cookie", "baz=qux"); - * headers.getSetCookie(); // ["foo=bar", "baz=qux"] - * ``` - */ - getSetCookie(): string[]; + getAll(name: "set-cookie" | "Set-Cookie"): string[]; } declare var Headers: { |