I wish to add definition for a plugin I love and I wish to know how I can define the type to allow this without use the type any.
I will use the property like this:
views: {
'list.view1': {
dropPagingCap: 20,
list_infiniteScroll: true,
list_selectable: 'multi'
},
'list.view2': {
dataSource: function(options, callback){ ... },
dropPagingCap: 30,
list_selectable: true
}
}
I have tried this, but the library except an object {}, not an array []
interface IFuelUxRepeaterViews {
[index: string]: IFuelUxRepeaterParametersBase | IFuelUxRepeaterListParameter | IFuelUxRepeaterTumbnailParameter | IFuelUxRepeaterAllParameter;
}
I don't know how to name this JavaScript type of declaration.