GoJS models have to handle data of any type, which is why properties such as Model.nodeDataArray are declared to be of type ObjectData[]
.
But your particular app may well know a specific type describing the data that you will have in that Array, so you can use that declaration instead of ObjectData[]
.
Are you sure your compiler is getting access to the go.d.ts
definitions file? If it isn’t, I recommend that you let it.