TinyBase

delSchema

The delSchema method lets you remove the Schema of the Store.

delSchema(): Store
returnsStore

A reference to the Store.

Example

This example removes the Schema of a Store.

const store = createStore().setSchema({pets: {species: {type: 'string'}}});
store.delSchema();
console.log(store.getSchemaJson());
// -> '{}'