utopia-ui/src/types.ts
2022-07-11 14:33:39 +02:00

26 lines
372 B
TypeScript

export interface Item {
id: number,
date_created?: string,
date_updated?: string | null,
name: string,
text: string,
position: Geometry,
start?: string,
end?: string,
tags?: number[],
[key: string]: any
}
export interface Geometry {
type: string;
coordinates: number[];
}
export interface Tag {
color: string;
id: number;
name: string;
}