git ssb

0+

wanderer🌟 / js-primea-hypervisor



Tree: 9bb00a66c6590ce780568e10d649be74c66ce1e6

Files: 9bb00a66c6590ce780568e10d649be74c66ce1e6 / stateInterface.js

264 bytesRaw
1module.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