Skip to content

getStore

Module @netwiv/api/plugins/store · Kind Function

import { getStore } from '@netwiv/api/plugins/store';

Gets an already loaded store.

If the store is not loaded, returns null. In this case you must {@link Store.loadload} it.

This function is more useful when you already know the store is loaded and just need to access its instance. Prefer {@link Store.load} otherwise.

function getStore(path: string): Promise<Store | null>
import { getStore } from '@netwiv/api/store';
const store = await getStore('store.json');

Descriptions come from the pinned @tauri-apps/plugin-store@2.4.5 declarations (MIT OR Apache-2.0); imports are shown with @netwiv/api paths.