|
5 | 5 | * Install with `npm install @types/node --save-dev`
|
6 | 6 | *--------------------------------------------------------------------------------------------*/
|
7 | 7 |
|
8 |
| -declare module 'iconv-lite' { |
9 |
| - // Basic API |
10 |
| - export function decode(buffer: Buffer | Uint8Array, encoding: string, options?: Options): string; |
| 8 | +// Basic API |
| 9 | +export function decode(buffer: Buffer | Uint8Array, encoding: string, options?: Options): string; |
11 | 10 |
|
12 |
| - export function encode(content: string, encoding: string, options?: Options): Buffer; |
| 11 | +export function encode(content: string, encoding: string, options?: Options): Buffer; |
13 | 12 |
|
14 |
| - export function encodingExists(encoding: string): boolean; |
| 13 | +export function encodingExists(encoding: string): boolean; |
15 | 14 |
|
16 |
| - // Stream API |
17 |
| - export function decodeStream(encoding: string, options?: Options): NodeJS.ReadWriteStream; |
| 15 | +// Stream API |
| 16 | +export function decodeStream(encoding: string, options?: Options): NodeJS.ReadWriteStream; |
18 | 17 |
|
19 |
| - export function encodeStream(encoding: string, options?: Options): NodeJS.ReadWriteStream; |
| 18 | +export function encodeStream(encoding: string, options?: Options): NodeJS.ReadWriteStream; |
20 | 19 |
|
21 |
| - // Low-level stream APIs |
22 |
| - export function getEncoder(encoding: string, options?: Options): EncoderStream; |
| 20 | +// Low-level stream APIs |
| 21 | +export function getEncoder(encoding: string, options?: Options): EncoderStream; |
23 | 22 |
|
24 |
| - export function getDecoder(encoding: string, options?: Options): DecoderStream; |
25 |
| -} |
| 23 | +export function getDecoder(encoding: string, options?: Options): DecoderStream; |
26 | 24 |
|
27 | 25 | export interface Options {
|
28 | 26 | stripBOM?: boolean;
|
|
0 commit comments