From 0df19e6f0bc2aa145cf34e4564613d17a3c0a65f Mon Sep 17 00:00:00 2001 From: Ermolay Romanov Date: Fri, 26 Feb 2021 11:35:09 -0500 Subject: [PATCH] [node] add base64url BufferEncoding option New encoding option was introduced in nodejs/node#36952 and is available since v15.7.0. It is documented on the website: https://nodejs.org/api/buffer.html#buffer_buffers_and_character_encodings --- types/node/globals.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/node/globals.d.ts b/types/node/globals.d.ts index 25372b9d5ea827..56d5692c6ad7da 100644 --- a/types/node/globals.d.ts +++ b/types/node/globals.d.ts @@ -71,7 +71,7 @@ declare var module: NodeModule; declare var exports: any; // Buffer class -type BufferEncoding = "ascii" | "utf8" | "utf-8" | "utf16le" | "ucs2" | "ucs-2" | "base64" | "latin1" | "binary" | "hex"; +type BufferEncoding = "ascii" | "utf8" | "utf-8" | "utf16le" | "ucs2" | "ucs-2" | "base64" | "base64url" | "latin1" | "binary" | "hex"; type WithImplicitCoercion = T | { valueOf(): T };