Skip to main content

api.getStores()

Description

Gets an object with the DataStore object of To Do List

Usage

api.getStores(): object;

Returns

The method returns an object with DataStore:

state: DataStore // ( object )

Example

const { ToDo, Toolbar } = todo;
const { tasks, users, projects } = getData();

// create To do list
const list = new ToDo("#root", {
tasks,
users,
projects
});

const stores = list.api.getStores();
console.log(stores);