Someone posted a useful and informative answer (which I voted for), but it seems to have gone missing - perhaps because I indicated that he didn’t answer the original question exactly, despite the fact that he was offering a nice workaround.
Anyway, they suggested rewriting the code to define SuperArray as a class that extends the array and adds the details ...
class SuperArray extends Array<number> { superLevel: string } const foo = new SuperArray();
( Explore Flowtype.org/try )
This is a good, clean solution, but I was mostly interested in knowing whether it is possible to annotate the original template - for example, in the case when one is limited to writing an autonomous declaration to describe a third-party module.
source share