collective-soundworks / soundworks

Creative coding framework for distributed applications based on Web technologies.
http://soundworks.dev
BSD 3-Clause "New" or "Revised" License
114 stars 7 forks source link

StateManager.create with init values does not check passed values properly #72

Closed b-ma closed 11 months ago

b-ma commented 11 months ago

Currently we have:

const state = await server.stateManager.create('a', { int: 'test' });
state.get('int');
// > 0

While it should throw an error just as state.set({ int: 'test' });