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.

array-callback-return TypeError #400

Closed
@pat841

Description

@pat841

What version of TypeScript are you using?
2.5.3

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

What code were you trying to parse?

export abstract class TestAbstract {

  onCreated?(): Promise<void> | any;

}

What did you expect to happen?
ESLint shouldnt fail when parsing the file.

What happened?
TypeError: Cannot read property 'type' of null
node_modules/eslint/lib/rules/array-callback-return.js:194:34

If I add a function body, it works:

  onCreated(): Promise<void> | any {

  }

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions