Skip to content

Forwarding generic leads to ReferenceError #971

@Philipp3211

Description

@Philipp3211

While trying to extend the functionality of the createMock function, I tried to pass a generic to it. This makes it crash.

function createCustomMock<T extends object>(): T {
    return createMock<T>(); // ReferenceError: t is not defined
}

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions