Skip to content

Commit

Permalink
[node] add base64url BufferEncoding option
Browse files Browse the repository at this point in the history
New encoding option was introduced in nodejs/node#36952 
and is available since v15.7.9. It is documented on the website: 
https://nodejs.org/api/buffer.html#buffer_buffers_and_character_encodings
  • Loading branch information
ermik authored Feb 26, 2021
1 parent 2a84cde commit 716a09f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion types/node/globals.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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> = T | { valueOf(): T };

Expand Down

0 comments on commit 716a09f

Please sign in to comment.