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.
Signature
Section titled “Signature”function getStore(path: string): Promise<Store | null>Example
Section titled “Example”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.