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