@aplus-frontend/antdv
Version:
Vue basic component library maintained based on ant-design-vue
12 lines (11 loc) • 437 B
TypeScript
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[] | string): ValueType | null;
update(keys: KeyType[] | string, valueFn: (origin: ValueType | null) => ValueType | null): void;
}
export default Entity;