You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
/* @flow */
declare type get<T> = () => T;
declare type ID<T> = T;
// flow complains here, that it does not expect any parameters for the T type
declare type X<T> = T<string>;
let x: X<ID> = 'abc';
let f: X<get> = () => 'abc';
I also tried declare type X<T<U>> but this syntax is not allowed.
The text was updated successfully, but these errors were encountered:
Currently this is impossible:
I also tried
declare type X<T<U>>
but this syntax is not allowed.The text was updated successfully, but these errors were encountered: