/* * @file swan.component.d.ts * @author LipengJia * @date 2020-01-03 */ // declare namespace SwanSmartApp { // namespace Component { // type PropertyType = // | StringConstructor // | NumberConstructor // | BooleanConstructor // | ArrayConstructor // | ObjectConstructor // | null // type ValueType = T extends StringConstructor // ? string // : T extends NumberConstructor // ? number // : T extends BooleanConstructor // ? boolean // : T extends ArrayConstructor // ? any[] // : T extends ObjectConstructor ? IAnyObject : any // type DataOption = Record // type PropertyOption = Record // type MethodOption = Record any> // interface Data { // /** 组件的内部数据,和 `properties` 一同用于组件的模板渲染 */ // data?: D // } // interface Constructor { // < // TData extends DataOption, // TProperty extends PropertyOption, // TMethod extends MethodOption // >( // options: Options, // ): string // } // } // } // todo