You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
15 lines
279 B
15 lines
279 B
|
4 months ago
|
/**
|
||
|
|
* k-v 存储
|
||
|
|
*/
|
||
|
|
export default class<T> {
|
||
|
|
map: {
|
||
|
|
[key: string]: T;
|
||
|
|
};
|
||
|
|
has(key: string): boolean;
|
||
|
|
get(key: string, def?: T): T | undefined;
|
||
|
|
set(key: string, value: T): void;
|
||
|
|
clear(): void;
|
||
|
|
delete(key: string): void;
|
||
|
|
size(): number;
|
||
|
|
}
|