import { PropType } from '../types/Types'; import { Component } from '../classes/Component'; /** * For getting type and default values from a newly added component * * @author Fernando Serrano, Robert Long */ export interface ComponentSchema { /** Property of the Component. */ [propName: string]: { /** Checks if the property is default. */ default?: any; /** Defines the type of the property. */ type: PropType; }; } /** * Interface for defining new component. * * @author Fernando Serrano, Robert Long */ export interface ComponentConstructor> { /** Schema for the Component. */ _schema: ComponentSchema; /** Type of the Component. */ _typeId: any; new(props?: Partial>> | false): C; }