Some checks failed
Build & Deploy / 🔍 Prepare (push) Successful in 20s
Build & Deploy / 🧪 QA (push) Failing after 34s
Build & Deploy / 🏗️ Build (push) Has started running
Build & Deploy / 🚀 Deploy (push) Has been cancelled
Build & Deploy / 🧪 Smoke Test (push) Has been cancelled
Build & Deploy / ⚡ Lighthouse (push) Has been cancelled
Build & Deploy / 🔔 Notify (push) Has been cancelled
26 lines
820 B
Plaintext
26 lines
820 B
Plaintext
export interface Cache {
|
|
has: (value: any) => boolean;
|
|
set: (key: any, value: any) => void;
|
|
get: (key: any) => any;
|
|
}
|
|
declare function createCacheModern(): Cache;
|
|
/**
|
|
* Get a new cache object to prevent circular references.
|
|
*/
|
|
export declare const createCache: typeof createCacheModern;
|
|
/**
|
|
* Get an empty version of the object with the same prototype it has.
|
|
*/
|
|
export declare function getCleanClone(prototype: any): any;
|
|
declare function getRegExpFlagsModern(regExp: RegExp): string;
|
|
/**
|
|
* Get the flags to apply to the copied regexp.
|
|
*/
|
|
export declare const getRegExpFlags: typeof getRegExpFlagsModern;
|
|
declare function getTagLegacy(value: any): string;
|
|
/**
|
|
* Get the tag of the value passed, so that the correct copier can be used.
|
|
*/
|
|
export declare const getTag: typeof getTagLegacy;
|
|
export {};
|