Skip to content

type usage fails on generic typing. #1972

Closed
@bluong

Description

@bluong

The following code fails on TS1.4
export type TypedArray<A> = A[];

Note that it uses generic typing to define the type TypedArray.

Surrounding the arrow brackets are the following compilation errors
error TS1005: '=' expected.
error TS1005: '(' expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    DuplicateAn existing issue was already created

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions