This repository was archived by the owner on Dec 18, 2025. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.d.ts
More file actions
55 lines (45 loc) · 1.53 KB
/
index.d.ts
File metadata and controls
55 lines (45 loc) · 1.53 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
// copied from @types/text-encoding
// Type definitions for text-encoding
// Project: https://github.com/inexorabletash/text-encoding
// Definitions by: Pine Mizune <https://github.com/pine>
// Mohsen Azimi <https://github.com/mohsen1>
// Thomas Nicollet <https://github.com/nwmqpa>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
declare module '@exodus/text-encoding-utf8'
declare namespace TextEncoding {
interface TextEncoderOptions {
NONSTANDARD_allowLegacyEncoding?: boolean;
}
interface TextEncoderStatic {
(utfLabel?: string, options?: TextEncoderOptions): TextEncoder;
new (utfLabel?: string, options?: TextEncoderOptions): TextEncoder;
}
export var TextEncoder: {
new (utfLabel?: string, options?: TextEncoderOptions): TextEncoder;
(utfLabel?: string, options?: TextEncoderOptions): TextEncoder;
encoding: string;
};
export var TextDecoder: {
(label?: string, options?: TextDecoderOptions): TextDecoder;
new (label?: string, options?: TextDecoderOptions): TextDecoder;
encoding: string;
};
}
interface TextEncodeOptions {
stream?: boolean;
}
interface TextDecoderOptions {
stream?: boolean;
}
interface TextEncoder {
readonly encoding: string;
encode(input?: string, options?: TextEncodeOptions): Uint8Array;
}
interface TextDecoder {
readonly encoding: string;
decode(input?: Uint8Array, options?: TextDecoderOptions): string;
}
declare module "text-encoding" {
export = TextEncoding;
}