Update docs

This commit is contained in:
Tony
2024-10-17 11:58:40 +08:00
parent bf5a19120f
commit 975129695e
2 changed files with 5 additions and 14 deletions
+2 -2
View File
@@ -68,9 +68,9 @@ fn main() {
Afterwards all the plugin's APIs are available through the JavaScript guest bindings:
```typescript
import { createStore } from '@tauri-apps/plugin-store'
import { Store } from '@tauri-apps/plugin-store'
const store = await createStore('settings.json')
const store = await Store.load('settings.json')
await store.set('some-key', { value: 5 })