mirror of
https://github.com/zhigang1992/DefinitelyTyped.git
synced 2026-05-21 17:20:32 +08:00
Merge pull request #8721 from eugenpodaru/master
Support AMD require / ES6 import for text-encoding
This commit is contained in:
31
text-encoding/text-encoding.d.ts
vendored
31
text-encoding/text-encoding.d.ts
vendored
@@ -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