idlize
/
stdlib.d.ts
39 строк · 1.6 Кб
1/*
2* Copyright (c) 2024 Huawei Device Co., Ltd.
3* Licensed under the Apache License, Version 2.0 (the "License");
4* you may not use this file except in compliance with the License.
5* You may obtain a copy of the License at
6*
7* http://www.apache.org/licenses/LICENSE-2.0
8*
9* Unless required by applicable law or agreed to in writing, software
10* distributed under the License is distributed on an "AS IS" BASIS,
11* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12* See the License for the specific language governing permissions and
13* limitations under the License.
14*/
15interface RelativeIndexable<T> {
16at(index: number): T | undefined;
17}
18interface String extends RelativeIndexable<string> {}
19interface Array<T> extends RelativeIndexable<T> {}
20interface ReadonlyArray<T> extends RelativeIndexable<T> {}
21interface Int8Array extends RelativeIndexable<number> {}
22interface Uint8Array extends RelativeIndexable<number> {}
23interface Uint8ClampedArray extends RelativeIndexable<number> {}
24interface Int16Array extends RelativeIndexable<number> {}
25interface Uint16Array extends RelativeIndexable<number> {}
26interface Int32Array extends RelativeIndexable<number> {}
27interface Uint32Array extends RelativeIndexable<number> {}
28interface Float32Array extends RelativeIndexable<number> {}
29interface Float64Array extends RelativeIndexable<number> {}
30interface BigInt64Array extends RelativeIndexable<bigint> {}
31interface BigUint64Array extends RelativeIndexable<bigint> {}
32interface Date {}
33interface IterableIterator<T> {}
34interface Object {}
35interface Function {}
36interface Promise<T> {}
37interface ArrayBuffer {}
38interface Map<K, V> {}
39interface Set<T> {}
40