This has been a feature in Flow for a long time (couldn't easily find a specific commit adding this). Interfaces are basically undocumented, though, so it's easy to see how this was missed.
3 lines
70 B
JavaScript
3 lines
70 B
JavaScript
declare interface I { foo: string }
|
|
declare interface I<T> { foo: T }
|