(idx: number)
| 1129 | */ |
| 1130 | // TODO: Type of data item |
| 1131 | getItemModel<ItemOpts extends unknown = unknown>(idx: number): Model<ItemOpts |
| 1132 | // Extract item option with value key. FIXME will cause incompatible issue |
| 1133 | // Extract<HostModel['option']['data'][number], { value?: any }> |
| 1134 | > { |
| 1135 | const hostModel = this.hostModel; |
| 1136 | const dataItem = this.getRawDataItem(idx) as ModelOption; |
| 1137 | return new Model(dataItem, hostModel, hostModel && hostModel.ecModel); |
| 1138 | } |
| 1139 | |
| 1140 | /** |
| 1141 | * Create a data differ |
no test coverage detected