summaryrefslogtreecommitdiff
path: root/ext/node/polyfills/_global.d.ts
diff options
context:
space:
mode:
Diffstat (limited to 'ext/node/polyfills/_global.d.ts')
-rw-r--r--ext/node/polyfills/_global.d.ts26
1 files changed, 12 insertions, 14 deletions
diff --git a/ext/node/polyfills/_global.d.ts b/ext/node/polyfills/_global.d.ts
index e9d645f9c..8587acbbb 100644
--- a/ext/node/polyfills/_global.d.ts
+++ b/ext/node/polyfills/_global.d.ts
@@ -2,20 +2,18 @@
import { EventEmitter } from "ext:deno_node/_events.d.ts";
import { Buffer } from "node:buffer";
-/** One of:
- * | "ascii"
- * | "utf8"
- * | "utf-8"
- * | "utf16le"
- * | "ucs2"
- * | "ucs-2"
- * | "base64"
- * | "base64url"
- * | "latin1"
- * | "binary"
- * | "hex";
- */
-export type BufferEncoding = string;
+export type BufferEncoding =
+ | "ascii"
+ | "utf8"
+ | "utf-8"
+ | "utf16le"
+ | "ucs2"
+ | "ucs-2"
+ | "base64"
+ | "base64url"
+ | "latin1"
+ | "binary"
+ | "hex";
export interface Buffered {
chunk: Buffer;