forked from jupyterlab/jupyterlab
-
Notifications
You must be signed in to change notification settings - Fork 0
/
typedoc.d.ts
61 lines (53 loc) · 1.57 KB
/
typedoc.d.ts
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
56
57
58
59
60
61
// Copyright (c) Jupyter Development Team.
// Distributed under the terms of the Modified BSD License.
/*
* TODO: remove this file and the excludes entry in tsconfig.json
* after typedoc understands the lib compiler option and @types packages.
*/
/// <reference path="../node_modules/@types/text-encoding/index.d.ts"/>
/// <reference path="../node_modules/typescript/lib/lib.es2015.promise.d.ts"/>
/// <reference path="../node_modules/typescript/lib/lib.dom.d.ts"/>
/// <reference path="../node_modules/typescript/lib/lib.es5.d.ts"/>
/// <reference path="../node_modules/typescript/lib/lib.es2015.collection.d.ts"/>
// TextEncoder interfaces for typedoc, since typedoc is still using TypeScript 2.7
// Remove these when typedoc is updated to use TypeScript 2.8
interface TextDecodeOptions {
stream?: boolean;
}
interface TextDecoderOptions {
fatal?: boolean;
ignoreBOM?: boolean;
}
interface TextDecoder {
readonly encoding: string;
readonly fatal: boolean;
readonly ignoreBOM: boolean;
decode(
input?:
| Int8Array
| Int16Array
| Int32Array
| Uint8Array
| Uint16Array
| Uint32Array
| Uint8ClampedArray
| Float32Array
| Float64Array
| DataView
| ArrayBuffer
| null,
options?: TextDecodeOptions
): string;
}
declare var TextDecoder: {
prototype: TextDecoder;
new (label?: string, options?: TextDecoderOptions): TextDecoder;
};
interface TextEncoder {
readonly encoding: string;
encode(input?: string): Uint8Array;
}
declare var TextEncoder: {
prototype: TextEncoder;
new (): TextEncoder;
};