teleport-lib-js icon indicating copy to clipboard operation
teleport-lib-js copied to clipboard

Component, Page and Content type definitions do not match the teleport api format

Open timoftean opened this issue 6 years ago • 0 comments

export interface Page {
  name: string
  content: Content
  url?: string
  children?: Component[] | string //Page api does not contain children
}

export interface Component {
  name: string
  content: Content
  children?: Component[] | string //Component does not contain children
  editableProps?: {
    [key: string]: ComponentEditableProp
  }
}

export interface Content {
  type: string
  source: string
  name: string
  style: {
    [key: string]: string
  }
// Content contains children 
}

timoftean avatar Sep 28 '18 08:09 timoftean