I'm currently looking to migrate our project to TypeScript. I've found this great set of definition files and I'm currently experimenting with the one for Knockout.
I know the definition file has a type for the observableArray KnockoutObservableArray
and I also am aware you can define a typed array like MyType[]
.
I'd like to know if I can somehow combine these two? I'd like to create a KnockoutObservableArray
for which the elements should be of type MyType
.
Thanks in advance!