forked from DefinitelyTyped/DefinitelyTyped
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlestate.d.ts
More file actions
27 lines (25 loc) · 723 Bytes
/
lestate.d.ts
File metadata and controls
27 lines (25 loc) · 723 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Type definitions for LeState v0.1.3
// Project: https://github.com/LeTools/LeState
// Definitions by: Hadrian Oliveira <https://github.com/thelambdaparty/>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
declare let LeState : {
createState: (props?: {
initialState: {};
}) => {
set(newValue: {}): [{
id: number;
state: {};
}];
get(): any;
insert(newValue: {}): void;
getDescription(): {};
createListener({ id, selector, force }: {
id: number;
selector: (state :any) => {};
force?: boolean;
}): void;
};
};
declare module "lestate" {
export default LeState;
}