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
// A self-contained demonstration of the problem follows...typeJson=string|number|boolean|null|JsonObject|JsonArray;typeJsonObject={[key:string]: Json};typeJsonArray=Array<Json>;
Expected behavior:
Compiles.
Actual behavior:
Type alias 'Json' circularly references itself.
Type alias 'JsonArray' circularly references itself.
TypeScript Version:
nightly
Code
Expected behavior:
Compiles.
Actual behavior:
Type alias 'Json' circularly references itself.
Type alias 'JsonArray' circularly references itself.
As a workaround, I'm using the more verbose:
But FlowType can compile the more "direct" type declarations. It would be nice if Typescript could support this as well.
The text was updated successfully, but these errors were encountered: