TinyBase logoTinyBase

delValuesSchema

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

delValuesSchema(): this
returnsthis

A reference to the Store.

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