Skip to content

typescript problem with indexing #16

@diriki

Description

@diriki

All indexing methods in the typescript header have the signature (...args: number[]).
The docs states that you can write arr.pick(null, 1) to select the second column, but null is not a number and a code with that line doesn't compile in typescript.
I suggest to change the signature with (...args: (number | null)[]) (same consideration should be made also for slice method).

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions