UNPKG

4.52 kBTypeScriptView Raw
1declare const assign: {
2 <T, U>(target: T, source: U): T & U;
3 <T_1, U_1, V>(target: T_1, source1: U_1, source2: V): T_1 & U_1 & V;
4 <T_2, U_2, V_1, W>(target: T_2, source1: U_2, source2: V_1, source3: W): T_2 & U_2 & V_1 & W;
5 (target: object, ...sources: any[]): any;
6}, create: {
7 (o: object | null): any;
8 (o: object | null, properties: PropertyDescriptorMap & ThisType<any>): any;
9}, defineProperties: (o: any, properties: PropertyDescriptorMap & ThisType<any>) => any, defineProperty: (o: any, p: string | number | symbol, attributes: PropertyDescriptor & ThisType<any>) => any, freeze: {
10 <T>(a: T[]): readonly T[];
11 <T_1 extends Function>(f: T_1): T_1;
12 <T_2>(o: T_2): Readonly<T_2>;
13}, getOwnPropertyDescriptor: (o: any, p: string | number | symbol) => PropertyDescriptor | undefined, getOwnPropertyNames: (o: any) => string[], getPrototypeOf: (o: any) => any, hasOwnProperty: (v: string | number | symbol) => boolean, isFrozen: (o: any) => boolean, keys: {
14 (o: object): string[];
15 (o: {}): string[];
16}, seal: <T>(o: T) => T, setPrototypeOf: (o: any, proto: object | null) => any;
17declare const isArray: (arg: any) => arg is any[];
18declare const ArrayFilter: {
19 <S extends any>(predicate: (value: any, index: number, array: any[]) => value is S, thisArg?: any): S[];
20 (predicate: (value: any, index: number, array: any[]) => unknown, thisArg?: any): any[];
21}, ArrayFind: {
22 <S extends any>(predicate: (this: void, value: any, index: number, obj: any[]) => value is S, thisArg?: any): S | undefined;
23 (predicate: (value: any, index: number, obj: any[]) => unknown, thisArg?: any): any;
24}, ArrayIndexOf: (searchElement: any, fromIndex?: number | undefined) => number, ArrayJoin: (separator?: string | undefined) => string, ArrayMap: <U>(callbackfn: (value: any, index: number, array: any[]) => U, thisArg?: any) => U[], ArrayPush: (...items: any[]) => number, ArrayReduce: {
25 (callbackfn: (previousValue: any, currentValue: any, currentIndex: number, array: any[]) => any): any;
26 (callbackfn: (previousValue: any, currentValue: any, currentIndex: number, array: any[]) => any, initialValue: any): any;
27 <U>(callbackfn: (previousValue: U, currentValue: any, currentIndex: number, array: any[]) => U, initialValue: U): U;
28}, ArrayReverse: () => any[], ArraySlice: (start?: number | undefined, end?: number | undefined) => any[], ArraySplice: {
29 (start: number, deleteCount?: number | undefined): any[];
30 (start: number, deleteCount: number, ...items: any[]): any[];
31}, ArrayUnshift: (...items: any[]) => number, forEach: (callbackfn: (value: any, index: number, array: any[]) => void, thisArg?: any) => void;
32declare const StringFromCharCode: (...codes: number[]) => string;
33declare const StringCharCodeAt: (index: number) => number, StringReplace: {
34 (searchValue: string | RegExp, replaceValue: string): string;
35 (searchValue: string | RegExp, replacer: (substring: string, ...args: any[]) => string): string;
36 (searchValue: {
37 [Symbol.replace](string: string, replaceValue: string): string;
38 }, replaceValue: string): string;
39 (searchValue: {
40 [Symbol.replace](string: string, replacer: (substring: string, ...args: any[]) => string): string;
41 }, replacer: (substring: string, ...args: any[]) => string): string;
42}, StringSlice: (start?: number | undefined, end?: number | undefined) => string, StringToLowerCase: () => string;
43export { ArrayFilter, ArrayFind, ArrayIndexOf, ArrayJoin, ArrayMap, ArrayPush, ArrayReduce, ArrayReverse, ArraySlice, ArraySplice, ArrayUnshift, assign, create, defineProperties, defineProperty, forEach, freeze, getOwnPropertyDescriptor, getOwnPropertyNames, getPrototypeOf, hasOwnProperty, isArray, isFrozen, keys, seal, setPrototypeOf, StringCharCodeAt, StringReplace, StringSlice, StringToLowerCase, StringFromCharCode, };
44export declare function isUndefined(obj: any): obj is undefined;
45export declare function isNull(obj: any): obj is null;
46export declare function isTrue(obj: any): obj is true;
47export declare function isFalse(obj: any): obj is false;
48export declare function isFunction(obj: any): obj is Function;
49export declare function isObject(obj: any): obj is object;
50export declare function isString(obj: any): obj is string;
51export declare function isNumber(obj: any): obj is number;
52export declare function toString(obj: any): string;
53export declare function getPropertyDescriptor(o: any, p: PropertyKey): PropertyDescriptor | undefined;
54export declare const emptyString = "";