Skip to content

Recursive type definitions #2011

@jart

Description

@jart

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;

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions