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.
17 lines
409 B
17 lines
409 B
2 years ago
|
import Emitter = require('./Emitter');
|
||
|
import each = require('./each');
|
||
|
|
||
|
declare class Store extends Emitter {
|
||
|
constructor(data?: {});
|
||
|
set(key: string, val: any): void;
|
||
|
set(values: {}): void;
|
||
|
get(key: string): any;
|
||
|
get(keys: string[]): {};
|
||
|
remove(key: string): void;
|
||
|
remove(keys: string[]): void;
|
||
|
clear(): void;
|
||
|
each(fn: (...args: any[]) => void): void;
|
||
|
}
|
||
|
|
||
|
export = Store;
|