mayank1513/vscode-extension-trello-kanban-board

View on GitHub
extension/interface.ts

Summary

Maintainability
A
0 mins
Test Coverage
export * from "./constants";
export interface MessageType {
  action: "save" | "load" | "info" | "warn" | "error" | "success" | "settings" | "showPanel";
  data?: BoardType;
  text?: string;
}

export interface TaskType {
  id: string;
  description: string;
  columnId: string;
  color?: string;
}

export interface ColumnType {
  id: string;
  title: string;
  color?: string;
  description?: string;
  archived?: boolean;
  tasksIds: string[];
}

export interface BoardType {
  theme?: string;
  columns: ColumnType[];
  tasks: { [key: string]: TaskType };
  scope: string;
}