DefinitelyTyped/types/lestate/lestate-tests.ts
2017-08-17 14:53:41 -07:00

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 })
});