(scope: string, key: string)
| 4 | constructor(private sdk: ISdk) {} |
| 5 | |
| 6 | async get<T = unknown>(scope: string, key: string): Promise<T | null> { |
| 7 | return this.sdk.trigger<{ scope: string; key: string }, T | null>({ |
| 8 | function_id: 'state::get', |
| 9 | payload: { scope, key }, |
| 10 | }) |
| 11 | } |
| 12 | |
| 13 | async set<T = unknown>(scope: string, key: string, value: T): Promise<T> { |
| 14 | return this.sdk.trigger<{ scope: string; key: string; value: T }, T>({ |
no outgoing calls