0.0.39 • Published 6 months ago
@types/text-encoding v0.0.39
Installation
npm install --save @types/text-encoding
Summary
This package contains type definitions for text-encoding (https://github.com/inexorabletash/text-encoding).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/text-encoding.
index.d.ts
// 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 namespace TextEncoding {
interface TextEncoderOptions {
NONSTANDARD_allowLegacyEncoding?: boolean | undefined;
}
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 | undefined;
}
interface TextDecoderOptions {
stream?: boolean | undefined;
}
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;
}
Additional Details
- Last updated: Fri, 02 Jul 2021 21:32:19 GMT
- Dependencies: none
- Global values:
TextEncoding
Credits
These definitions were written by Pine Mizune, Mohsen Azimi, and Thomas Nicollet.
0.0.37
8 months ago
0.0.38
6 months ago
0.0.39
6 months ago
0.0.36
3 years ago
0.0.35
5 years ago
0.0.34
6 years ago
0.0.33
6 years ago
0.0.32
7 years ago
0.0.31
7 years ago
0.0.30
8 years ago
0.0.29
8 years ago
0.0.28
8 years ago
0.0.27
8 years ago
0.0.26
8 years ago
0.0.25-alpha
8 years ago
0.0.24-alpha
8 years ago
0.0.23-alpha
8 years ago
0.0.22-alpha
8 years ago
0.0.21-alpha
8 years ago
0.0.20-alpha
8 years ago
0.0.19-alpha
8 years ago
0.0.14-alpha
8 years ago
0.0.13-alpha
8 years ago