amis-rpc-design/node_modules/@ant-design/cssinjs/es/Cache.d.ts

12 lines
419 B
TypeScript
Raw Normal View History

2023-10-07 19:42:30 +08:00
export type KeyType = string | number;
type ValueType = [number, any];
declare class Entity {
instanceId: string;
constructor(instanceId: string);
/** @private Internal cache map. Do not access this directly */
cache: Map<string, ValueType>;
get(keys: KeyType[]): ValueType | null;
update(keys: KeyType[], valueFn: (origin: ValueType | null) => ValueType | null): void;
}
export default Entity;