/opt/canhelp/node_modules/nanostores/clean-stores
Edit: /opt/canhelp/node_modules/nanostores/clean-stores/index.d.ts (556B)
import type { MapCreator } from '../map-creator/index.js'
import type { Store } from '../map/index.js'
export const clean: unique symbol
/**
* Destroys all cached stores and call
*
* It also reset all tasks by calling {@link cleanTasks}.
*
* ```js
* import { cleanStores } from 'nanostores'
*
* afterEach(() => {
* cleanStores($router, $settings)
* })
* ```
*
* @param stores Used store classes.
* @return Promise for stores destroying.
*/
export function cleanStores(
...stores: (MapCreator
| Store | undefined)[]
): void