Skip to content

Commit 0df19e6

Browse files
authored
[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
1 parent 2a84cde commit 0df19e6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

types/node/globals.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ declare var module: NodeModule;
7171
declare var exports: any;
7272

7373
// Buffer class
74-
type BufferEncoding = "ascii" | "utf8" | "utf-8" | "utf16le" | "ucs2" | "ucs-2" | "base64" | "latin1" | "binary" | "hex";
74+
type BufferEncoding = "ascii" | "utf8" | "utf-8" | "utf16le" | "ucs2" | "ucs-2" | "base64" | "base64url" | "latin1" | "binary" | "hex";
7575

7676
type WithImplicitCoercion<T> = T | { valueOf(): T };
7777

0 commit comments

Comments
 (0)