In API documentation (and also in SDK) it is:
getBikeLights() as Lang.Array<AntPlus.LightNetworkState> or Null
But it returns an Array of BikeLight.
When type check level is set to strict you need to do a lot of workaround code to handle this.
But I could be wrong.
Like:
See: https://github.com/djs2014/settled