mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
21 lines
311 B
TypeScript
21 lines
311 B
TypeScript
/// <reference path="./lestate.d.ts"/>
|
|
|
|
let State = LeState.createState()
|
|
|
|
State.set({
|
|
test : {}
|
|
})
|
|
|
|
let currentState = State.get()
|
|
|
|
State.insert({
|
|
test : {}
|
|
})
|
|
|
|
let currentDescription = State.getDescription()
|
|
|
|
State.createListener({
|
|
id : 0,
|
|
selector : state => ({ test : state.test })
|
|
})
|