beta/types/index.d.ts
Christopher Arraya bcf3f113ad i'm done
2023-11-05 07:34:37 -05:00

48 lines
868 B
TypeScript

export type Feature = {
name: string;
description: string;
uid: string;
};
export type Task = {
name: string;
description: string;
priority: string;
order: number;
uid: string;
feature_id: string;
};
export type Project = {
name: string;
description: string;
stack: string[];
features: Feature[];
tasks: Task[];
};
export type Workspace = {
name: string;
description: string;
projects: Project[];
};
export type Option = {
label: string;
value: string;
icon?: React.ComponentType<{ className?: string }>;
};
export interface DataTableFilterOption<TData> {
label: string;
value: keyof TData;
items: Option[];
}
export interface DataTableSearchableColumn<TData> {
id: keyof TData;
title: string;
}
export interface DataTableFilterableColumn<TData>
extends DataTableSearchableColumn<TData> {
options: Option[];
}