Skip to content

without should Exclude from return type. #1503

@bvandercar-vt

Description

@bvandercar-vt

Current implementation:

declare function without<T>(array: readonly T[], ...values: T[]): T[];

Should be something like

declare function without<T, V extends T>(array: readonly T[], ...values: V[]): Exclude<T, V>[];

The current type return does us absolutely no good.

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