Skip to content
This repository was archived by the owner on Jan 19, 2019. It is now read-only.
This repository was archived by the owner on Jan 19, 2019. It is now read-only.

Parsing error for generic function with index signature return type #393

Closed
@OliverJAsh

Description

@OliverJAsh

What version of TypeScript are you using?
2.4.1

What version of typescript-eslint-parser are you using?
8

What code were you trying to parse?

const x = <T>(): { [x: string]: string } => ({});

What did you expect to happen?
No error

What happened?

[eslint] Parsing error: ',' expected.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions