teleport-lib-js
teleport-lib-js copied to clipboard
Component, Page and Content type definitions do not match the teleport api format
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
}