GeezerVison is showing github.com — typings: improve internal binding types · nodejs/node@16bbcd8
File tree
Expand file treeCollapse file tree
Open diff view settings
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: typings/globals.d.ts +2Lines changed: 2 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -4,6 +4,7 @@ import { BlobBinding } from './internalBinding/blob'; |
4 | 4 | import { ConfigBinding } from './internalBinding/config'; |
5 | 5 | import { ConstantsBinding } from './internalBinding/constants'; |
6 | 6 | import { DebugBinding } from './internalBinding/debug'; |
| 7 | +import { EncodingBinding } from './internalBinding/encoding_binding'; |
7 | 8 | import { HttpParserBinding } from './internalBinding/http_parser'; |
8 | 9 | import { InspectorBinding } from './internalBinding/inspector'; |
9 | 10 | import { FsBinding } from './internalBinding/fs'; |
@@ -34,6 +35,7 @@ interface InternalBindingMap { |
34 | 35 | config: ConfigBinding; |
35 | 36 | constants: ConstantsBinding; |
36 | 37 | debug: DebugBinding; |
| 38 | + encoding_binding: EncodingBinding; |
37 | 39 | fs: FsBinding; |
38 | 40 | fs_dir: FsDirBinding; |
39 | 41 | http_parser: HttpParserBinding; |
|
Collapse file
Copy file name to clipboard +8Lines changed: 8 additions & 0 deletions | Original file line number | Diff line number | Diff line change |
|---|
|
| 1 | +export interface EncodingBinding { |
| 2 | + encodeInto(source: string, dest: Uint8Array): void; |
| 3 | + encodeUtf8String(str: string): Uint8Array; |
| 4 | + decodeUTF8(buffer: ArrayBufferView | ArrayBuffer | SharedArrayBuffer, ignoreBOM?: boolean, hasFatal?: boolean): string; |
| 5 | + toASCII(input: string): string; |
| 6 | + toUnicode(input: string): string; |
| 7 | + decodeLatin1(buffer: ArrayBufferView | ArrayBuffer | SharedArrayBuffer, ignoreBOM?: boolean, hasFatal?: boolean): string; |
| 8 | +} |