Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
fixup: typings: add typing for internal/string_decoder
Co-authored-by: Michaël Zasso <targos@protonmail.com>
  • Loading branch information
Ayase-252 and targos committed Apr 14, 2021
commit b9ccd90946a947eca0a6fceb320d1b21969b137b
3 changes: 2 additions & 1 deletion lib/string_decoder.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,8 @@ const kNativeDecoder = Symbol('kNativeDecoder');
/**
*
* @param {string} enc
* @returns {"utf8" | "utf16le" | "hex" | "ascii" | "base64" | "latin1" | "base64url"}
* @returns {"utf8" | "utf16le" | "hex" | "ascii"
* | "base64" | "latin1" | "base64url"}
Comment thread
aduh95 marked this conversation as resolved.
*/
function normalizeEncoding(enc) {
const nenc = internalUtil.normalizeEncoding(enc);
Expand Down