cs
This commit is contained in:
18
node_modules/@ant-design/cssinjs/lib/Cache.d.ts
generated
vendored
Normal file
18
node_modules/@ant-design/cssinjs/lib/Cache.d.ts
generated
vendored
Normal file
@@ -0,0 +1,18 @@
|
||||
export type KeyType = string | number;
|
||||
type ValueType = [number, any];
|
||||
/** Connect key with `SPLIT` */
|
||||
export declare function pathKey(keys: KeyType[]): string;
|
||||
declare class Entity {
|
||||
instanceId: string;
|
||||
constructor(instanceId: string);
|
||||
/** @private Internal cache map. Do not access this directly */
|
||||
cache: Map<string, ValueType>;
|
||||
extracted: Set<string>;
|
||||
get(keys: KeyType[]): ValueType | null;
|
||||
/** A fast get cache with `get` concat. */
|
||||
opGet(keyPathStr: string): ValueType | null;
|
||||
update(keys: KeyType[], valueFn: (origin: ValueType | null) => ValueType | null): void;
|
||||
/** A fast get cache with `get` concat. */
|
||||
opUpdate(keyPathStr: string, valueFn: (origin: ValueType | null) => ValueType | null): void;
|
||||
}
|
||||
export default Entity;
|
||||
Reference in New Issue
Block a user