TinyBase logoTinyBase

hasValuesSchema

The hasValuesSchema method returns a boolean indicating whether the Store currently has a ValuesSchema applied to it.

hasValuesSchema(): boolean
returnsboolean

Whether the Store has a ValuesSchema applied to it.

Example

This example sets a ValuesSchema and checks that it is present.

const store = createStore().setValuesSchema({open: {type: 'boolean'}});
console.log(store.hasValuesSchema());
// -> true

store.delValuesSchema();
console.log(store.hasValuesSchema());
// -> false

Since

v4.1.1