I’m trying to add more js typedefs and I’m running into issues.
One issue I just ran into is:
/** @type {boolean} */
Body.prototype.bodyUsed;
/** @override */
Request.prototype.bodyUsed;
/** @override */
Response.prototype.bodyUsed;
Request and Response both:
* @implements {Body}
When compiling, we get an error because the Request and Response
setters/getters are typed to “Object”, while the Body ones are correctly types
as Booleans.
It seems like externc does not find the inherited types using @implements.
Is this a bug? Something not implemented? Is it easy to fix?
We can add more files to the list we maintain in royale-extras, but I’d like to
reduce that rather than increase it.
Thoughts?
Harbs