TinyBase logoTinyBase

delValuesSchema

The delValuesSchema method lets you remove the ValuesSchema of the Store.

delValuesSchema(): Store
returnsStore

A reference to the Store.

Example

This example removes the ValuesSchema of a Store.

const store = createStore().setValuesSchema({
  sold: {type: 'boolean', default: false},
});
store.delValuesSchema();
console.log(store.getValuesSchemaJson());
// -> '{}'

Since

v3.0.0