mirror of
https://github.com/thomasnordquist/MQTT-Explorer.git
synced 2026-07-28 04:07:18 +00:00
23 lines
437 B
TypeScript
23 lines
437 B
TypeScript
import { RpcEvent } from './EventSystem/Rpc'
|
|
|
|
export interface StoreCommand {
|
|
store: string
|
|
data: any
|
|
}
|
|
|
|
export interface LoadCommand {
|
|
store: string
|
|
}
|
|
|
|
export const storageStoreEvent: RpcEvent<StoreCommand, void> = {
|
|
topic: 'storage/store',
|
|
}
|
|
|
|
export const storageLoadEvent: RpcEvent<LoadCommand, StoreCommand> = {
|
|
topic: 'storage/load',
|
|
}
|
|
|
|
export const storageClearEvent: RpcEvent<void, void> = {
|
|
topic: 'storage/clear',
|
|
}
|