models.ts 580 Bytes
Newer Older
hucy's avatar
hucy committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25
export interface Todo {
  id: number;
  content: string;
}

export interface Meta {
  totalCount: number;
}

export interface CanvasRoute {
  x: number;
  y: number;
  [proppName: string]: any;
}
export interface CanvasStyle {
  lineWidth?: number;
  strokeStyle?: string;
  lineJoin?: string;
  lineCap?: string;
  step?: number;
}
export interface CanvasData {
  data: CanvasRoute[];
  style?: CanvasStyle;
}
hucy's avatar
hucy committed
26 27 28 29 30 31 32 33
export interface EssentialLinkType {
  title: string;
  caption?: string;
  icon?: string;
  link?: string;
  active?: boolean;
  children?: Array<EssentialLinkType>;
}