Files
TechRadarAJR/src/lib/types.ts
Mathias Schopmans 5750723c40 fix: allow tags to be optional in items
related to #430
2024-03-13 14:47:33 +01:00

46 lines
723 B
TypeScript

export enum Flag {
New = "new",
Changed = "changed",
Default = "default",
}
export type Release = string;
export interface Revision {
release: Release;
ring: string;
body?: string;
}
export interface Item {
id: string;
title: string;
info?: string;
body: string;
featured: boolean;
ring: string;
quadrant: string;
flag: Flag;
tags?: string[];
release: Release;
revisions?: Revision[];
position: [x: number, y: number];
}
export interface Ring {
id: string;
title: string;
description: string;
color: string;
radius?: number;
strokeWidth?: number;
}
export interface Quadrant {
id: string;
title: string;
description: string;
color: string;
position: number;
}