mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
20 lines
320 B
TypeScript
20 lines
320 B
TypeScript
import LeState = require("lestate");
|
|
const State = LeState.createState();
|
|
|
|
State.set({
|
|
test : {}
|
|
});
|
|
|
|
const currentState = State.get();
|
|
|
|
State.insert({
|
|
test : {}
|
|
});
|
|
|
|
const currentDescription = State.getDescription();
|
|
|
|
State.createListener({
|
|
id : 0,
|
|
selector : state => ({ test : state.test })
|
|
});
|