numjs icon indicating copy to clipboard operation
numjs copied to clipboard

typescript problem with indexing

Open diriki opened this issue 8 months ago • 0 comments

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).

diriki avatar Apr 15 '25 10:04 diriki