upend/webui/src/lib/types/base.ts

36 lines
586 B
TypeScript
Raw Normal View History

import type { IValue } from "@upnd/upend/types";
2023-09-07 18:57:45 +02:00
export type WidgetChange =
2021-12-02 18:45:29 +01:00
| AttributeCreate
| AttributeUpdate
2023-09-07 18:57:45 +02:00
| AttributeDelete
| EntryInAdd
| EntryInDelete;
2021-12-02 18:45:29 +01:00
export interface AttributeCreate {
type: "create";
attribute: string;
value: IValue;
2021-12-02 18:45:29 +01:00
}
export interface AttributeUpdate {
type: "update";
attribute: string;
value: IValue;
2021-12-02 18:45:29 +01:00
}
export interface AttributeDelete {
type: "delete";
address: string;
}
2023-09-07 18:57:45 +02:00
export interface EntryInAdd {
type: "entry-add";
address: string;
}
export interface EntryInDelete {
type: "entry-delete";
address: string;
}