mirror of
https://github.com/tauri-apps/plugins-workspace.git
synced 2026-08-19 19:17:15 +02:00
Update docs
This commit is contained in:
@@ -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 })
|
||||
|
||||
|
||||
Reference in New Issue
Block a user