Skip to content

Error when call function from array of functions #2525

Closed
@MaxGraey

Description

@MaxGraey

Minimal example:

function foo(): void {}
const arr = [foo];
arr[0]();

Error:

ERROR TS2757: Type '() => void' has no call signatures.

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