delValuesSchema
The delValuesSchema
method lets you remove the ValuesSchema
of the Store
.
delValuesSchema(): this
returns | this | A reference to the |
---|
Example
This example removes the ValuesSchema
of a Store
.
import {createStore} from 'tinybase';
const store = createStore().setValuesSchema({
sold: {type: 'boolean', default: false},
});
store.delValuesSchema();
console.log(store.getValuesSchemaJson());
// -> '{}'
Since
v3.0.0