Files: cfba6fdcb78b4019f623639fbd7dfecaacb4ab1c / stateInterface.js
264 bytesRaw
1 | module.exports = class StateInterface { |
2 | constuctor (state) { |
3 | this.state = state |
4 | } |
5 | |
6 | set (name, value) { |
7 | this.state.set([name], value) |
8 | } |
9 | |
10 | get (name) { |
11 | return this.state.get([name]) |
12 | } |
13 | |
14 | delete (name) { |
15 | return this.state.del([name]) |
16 | } |
17 | } |
18 |
Built with git-ssb-web