diff --git a/src/types/component.ts b/src/types/component.ts index 3af6cc7..302f404 100644 --- a/src/types/component.ts +++ b/src/types/component.ts @@ -1,4 +1,4 @@ -import type { Action, ButtonAction } from "./action" +import type { ButtonAction } from "./action" export const ComponentType = { Button: "button", @@ -35,20 +35,6 @@ export type GeneralData = TextGeneralData | ButtonGeneralData | TextFieldGeneralData | TableGeneralData -export interface ComponentData { - _id: string, - projectId: string - screenId: string, - name: string, - type: ComponentType, - uiData: UIData, - index: number, - generalData: GeneralData - style: { [k: string]: string }, - action?: Action -} - - export type Component = ButtonComponent | TextComponent | TextFieldComponent | TableComponent diff --git a/src/types/project.ts b/src/types/project.ts index c4d7a9c..0b88e99 100644 --- a/src/types/project.ts +++ b/src/types/project.ts @@ -1,14 +1,6 @@ import type { Screen } from "./screen"; import type { Table } from "./table"; -export interface ProjectData { - _id: string; - title: string; - detail: string; - createdTime: Date; - updatedTime: Date; -} - export interface Project { id: string; title: string; diff --git a/src/types/screen.ts b/src/types/screen.ts index 9789230..c7f1d67 100644 --- a/src/types/screen.ts +++ b/src/types/screen.ts @@ -1,12 +1,5 @@ import type { Component } from "./component"; -export interface ScreenData { - _id: string, - name: string, - projectId: string, - index: number -} - export interface Screen { id: string, name: string, diff --git a/src/types/table.ts b/src/types/table.ts index ff1e58d..0c678e6 100644 --- a/src/types/table.ts +++ b/src/types/table.ts @@ -13,12 +13,6 @@ } } -export interface TableData { - _id: string, - projectId: string, - name: string, - columns: Column[] -} export interface Table { id: string,