mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
28 lines
723 B
TypeScript
28 lines
723 B
TypeScript
// 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;
|
|
}
|