DefinitelyTyped/types/lestate/index.d.ts
2017-08-20 15:37:53 -07:00

22 lines
591 B
TypeScript

// Type definitions for LeState 0.1
// Project: https://github.com/LeTools/LeState
// Definitions by: Hadrian Oliveira <https://github.com/thelambdaparty>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
export interface LeState {
set(newValue: {}): [{
id: number;
state: {};
}];
get(): any;
insert(newValue: {}): void;
getDescription(): {};
createListener(options: {
id: number;
selector(state: any): {};
force?: boolean;
}): void;
}
export function createState(props?: { initialState: {} }): LeState;