I am trying to improve the typing of my app, to be aware of potential runtime exceptions while compiling. The app is receiving JSON responses that consists of an array:
[]
The Communications.makeWebRequest() method expects
responseCallback as Lang.Method(responseCode as Lang.Number, data as Lang.Dictionary or Lang.String or Null)
Since Lang.Dictionary cannot be polymorphed into Lang.Array or the other way around, how can a Lang.Array be received with typing enabled?
One option would be to use Lang.Object, however, this is quite a general typing.