We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
In TypeScript, I can do the following
interface RecursiveArray<T> extends Array<T|RecursiveArray<T>> {}
But in Closure, I can't do this:
/** * @typedef {!Array<T|RecursiveArray<T>>} * @template T */ var RecursiveArray;
The text was updated successfully, but these errors were encountered:
You can define recursive structural types with @record. Typedefs can only be used to define an alias for an existing type, not to define a new type.
@record
Sorry, something went wrong.
Amazing!
No branches or pull requests
In TypeScript, I can do the following
But in Closure, I can't do this:
The text was updated successfully, but these errors were encountered: