-
-
Notifications
You must be signed in to change notification settings - Fork 320
/
trbl.d.ts
56 lines (56 loc) · 3.8 KB
/
trbl.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
declare const _exports: {
[n: number]: string;
length: number;
toString(): string;
toLocaleString(): string;
pop(): string | undefined;
push(...items: string[]): number;
concat(...items: ConcatArray<string>[]): string[];
concat(...items: (string | ConcatArray<string>)[]): string[];
join(separator?: string | undefined): string;
reverse(): string[];
shift(): string | undefined;
slice(start?: number | undefined, end?: number | undefined): string[];
sort(compareFn?: ((a: string, b: string) => number) | undefined): string[];
splice(start: number, deleteCount?: number | undefined): string[];
splice(start: number, deleteCount: number, ...items: string[]): string[];
unshift(...items: string[]): number;
indexOf(searchElement: string, fromIndex?: number | undefined): number;
lastIndexOf(searchElement: string, fromIndex?: number | undefined): number;
every<S extends string>(predicate: (value: string, index: number, array: string[]) => value is S, thisArg?: any): this is S[];
every(predicate: (value: string, index: number, array: string[]) => unknown, thisArg?: any): boolean;
some(predicate: (value: string, index: number, array: string[]) => unknown, thisArg?: any): boolean;
forEach(callbackfn: (value: string, index: number, array: string[]) => void, thisArg?: any): void;
map<U>(callbackfn: (value: string, index: number, array: string[]) => U, thisArg?: any): U[];
filter<S_1 extends string>(predicate: (value: string, index: number, array: string[]) => value is S_1, thisArg?: any): S_1[];
filter(predicate: (value: string, index: number, array: string[]) => unknown, thisArg?: any): string[];
reduce(callbackfn: (previousValue: string, currentValue: string, currentIndex: number, array: string[]) => string): string;
reduce(callbackfn: (previousValue: string, currentValue: string, currentIndex: number, array: string[]) => string, initialValue: string): string;
reduce<U_1>(callbackfn: (previousValue: U_1, currentValue: string, currentIndex: number, array: string[]) => U_1, initialValue: U_1): U_1;
reduceRight(callbackfn: (previousValue: string, currentValue: string, currentIndex: number, array: string[]) => string): string;
reduceRight(callbackfn: (previousValue: string, currentValue: string, currentIndex: number, array: string[]) => string, initialValue: string): string;
reduceRight<U_2>(callbackfn: (previousValue: U_2, currentValue: string, currentIndex: number, array: string[]) => U_2, initialValue: U_2): U_2;
find<S_2 extends string>(predicate: (this: void, value: string, index: number, obj: string[]) => value is S_2, thisArg?: any): S_2 | undefined;
find(predicate: (value: string, index: number, obj: string[]) => unknown, thisArg?: any): string | undefined;
findIndex(predicate: (value: string, index: number, obj: string[]) => unknown, thisArg?: any): number;
fill(value: string, start?: number | undefined, end?: number | undefined): string[];
copyWithin(target: number, start: number, end?: number | undefined): string[];
entries(): IterableIterator<[number, string]>;
keys(): IterableIterator<number>;
values(): IterableIterator<string>;
includes(searchElement: string, fromIndex?: number | undefined): boolean;
flatMap<U_3, This = undefined>(callback: (this: This, value: string, index: number, array: string[]) => U_3 | readonly U_3[], thisArg?: This | undefined): U_3[];
flat<A, D extends number = 1>(this: A, depth?: D | undefined): FlatArray<A, D>[];
[Symbol.iterator](): IterableIterator<string>;
[Symbol.unscopables](): {
copyWithin: boolean;
entries: boolean;
fill: boolean;
find: boolean;
findIndex: boolean;
keys: boolean;
values: boolean;
};
at(index: number): string | undefined;
};
export = _exports;