123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471 |
- export function deepEqual(obj: any, ref: any, options?: deepEqual.Options): boolean;
- export namespace deepEqual {
- interface Options {
-
- readonly deepFunction?: boolean;
-
- readonly part?: boolean;
-
- readonly prototype?: boolean;
-
- readonly skip?: (string | symbol)[];
-
- readonly symbols?: boolean;
- }
- }
- export function clone<T>(obj: T, options?: clone.Options): T;
- export namespace clone {
- interface Options {
-
- readonly prototype?: boolean;
-
- readonly symbols?: boolean;
-
- readonly shallow?: string[] | string[][] | boolean;
- }
- }
- export function merge<T1 extends object, T2 extends object>(target: T1, source: T2, options?: merge.Options): T1 & T2;
- export namespace merge {
- interface Options {
-
- readonly nullOverride?: boolean;
-
- readonly mergeArrays?: boolean;
-
- readonly symbols?: boolean;
- }
- }
- export function applyToDefaults<T extends object>(defaults: Partial<T>, source: Partial<T> | boolean | null, options?: applyToDefaults.Options): Partial<T>;
- export namespace applyToDefaults {
- interface Options {
-
- readonly nullOverride?: boolean;
-
- readonly shallow?: string[] | string[][];
- }
- }
- export function intersect<T1, T2>(array1: intersect.Array<T1>, array2: intersect.Array<T2>, options?: intersect.Options): Array<T1 | T2>;
- export function intersect<T1, T2>(array1: intersect.Array<T1>, array2: intersect.Array<T2>, options?: intersect.Options): T1 | T2;
- export namespace intersect {
- type Array<T> = ArrayLike<T> | Set<T> | null;
- interface Options {
-
- readonly first?: boolean;
- }
- }
- export function contain(ref: string, values: string | string[], options?: contain.Options): boolean;
- export function contain(ref: any[], values: any, options?: contain.Options): boolean;
- export function contain(ref: object, values: string | string[] | object, options?: Omit<contain.Options, 'once'>): boolean;
- export namespace contain {
- interface Options {
-
- readonly deep?: boolean;
-
- readonly once?: boolean;
-
- readonly only?: boolean;
-
- readonly part?: boolean;
-
- readonly symbols?: boolean;
- }
- }
- export function flatten<T>(array: ArrayLike<T | ReadonlyArray<T>>, target?: ArrayLike<T | ReadonlyArray<T>>): T[];
- export function reach(obj: object | null, chain: string | (string | number)[] | false | null | undefined, options?: reach.Options): any;
- export namespace reach {
- interface Options {
-
- readonly separator?: string;
-
- readonly default?: any;
-
- readonly strict?: boolean;
-
- readonly functions?: boolean;
-
- readonly iterables?: boolean;
- }
- }
- export function reachTemplate(obj: object | null, template: string, options?: reach.Options): string;
- export function assert(condition: any, error: Error): void;
- export function assert(condition: any, ...args: any): void;
- export class Bench {
- constructor();
-
- ts: number;
-
- elapsed(): number;
-
- reset(): void;
-
- static now(): number;
- }
- export function escapeRegex(string: string): string;
- export function escapeHeaderAttribute(attribute: string): string;
- export function escapeHtml(string: string): string;
- export function escapeJson(string: string): string;
- export function once<T extends Function>(method: T): T;
- export function ignore(...ignore: any): void;
- export function stringify(value: any, replacer?: any, space?: string | number): string;
- export function wait<T>(timeout?: number, returnValue?: T): Promise<T>;
- export function block(): Promise<void>;
- export function isPromise(promise: any): boolean;
- export namespace ts {
-
- type XOR<T, U> = (T | U) extends object ? (internals.Without<T, U> & U) | (internals.Without<U, T> & T) : T | U;
- }
- declare namespace internals {
- type Without<T, U> = { [P in Exclude<keyof T, keyof U>]?: never };
- }
|