mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-12-03 19:51:53 +00:00
support AMD require / ES6 import
This commit is contained in:
Vendored
+23
-8
@@ -32,14 +32,29 @@ declare namespace TextEncoding {
|
||||
interface TextEncodeOptions {
|
||||
stream?: boolean;
|
||||
}
|
||||
|
||||
interface TextEncoderStatic {
|
||||
(utfLabel?: string, options?: TextEncoderOptions): TextEncoder;
|
||||
new (utfLabel?: string, options?: TextEncoderOptions): TextEncoder;
|
||||
}
|
||||
|
||||
interface TextDecoderStatic {
|
||||
(label?: string, options?: TextDecoderOptions): TextDecoder;
|
||||
new (label?: string, options?: TextDecoderOptions): TextDecoder;
|
||||
}
|
||||
|
||||
interface TextEncodingStatic {
|
||||
TextEncoder: TextEncoderStatic;
|
||||
TextDecoder: TextDecoderStatic;
|
||||
}
|
||||
}
|
||||
|
||||
declare var TextDecoder: {
|
||||
(label?: string, options?: TextEncoding.TextDecoderOptions): TextEncoding.TextDecoder;
|
||||
new (label?: string, options?: TextEncoding.TextDecoderOptions): TextEncoding.TextDecoder;
|
||||
};
|
||||
declare var TextDecoder: TextEncoding.TextDecoderStatic;
|
||||
|
||||
declare var TextEncoder: {
|
||||
(utfLabel?: string, options?: TextEncoding.TextEncoderOptions): TextEncoding.TextEncoder;
|
||||
new (utfLabel?: string, options?: TextEncoding.TextEncoderOptions): TextEncoding.TextEncoder;
|
||||
};
|
||||
declare var TextEncoder: TextEncoding.TextEncoderStatic;
|
||||
|
||||
declare var TextEncoding: TextEncoding.TextEncodingStatic;
|
||||
|
||||
declare module "text-encoding" {
|
||||
export = TextEncoding;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user