teleporthq / teleport-lib-js

MIT License
25 stars 7 forks source link

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

Open timoftean opened 6 years ago

timoftean commented 6 years ago
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 
}