Skip to content

[bug]: Incorrect type of TimeoutCallback #2733

@Arcticon

Description

@Arcticon

No existing issues.

  • There is no existing issue for my problem.

Description

TimeoutCallback is defined like so:
export declare type TimeoutCallback = (args?: any[]) => void;
but it should be like this:
export declare type TimeoutCallback = (...args: any[]) => unknown;

Reproduction instruction

this.setTimeout(
    (foo: string, bar: string) => {
        // Any content
    },
    1000,
    'foo',
    'bar',
);

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