25 lines
433 B
TypeScript
25 lines
433 B
TypeScript
import type { IValue } from "upend/types";
|
|
|
|
export type AttributeChange =
|
|
| AttributeCreate
|
|
| AttributeUpdate
|
|
| AttributeDelete;
|
|
|
|
export interface AttributeCreate {
|
|
type: "create";
|
|
attribute: string;
|
|
value: IValue;
|
|
}
|
|
|
|
export interface AttributeUpdate {
|
|
type: "update";
|
|
address: string;
|
|
attribute: string; // TODO: remove
|
|
value: IValue;
|
|
}
|
|
|
|
export interface AttributeDelete {
|
|
type: "delete";
|
|
address: string;
|
|
}
|