[Pkg-javascript-devel] Bug#1115810: Typescript definition error

Jérémy Lal kapouer at melix.org
Mon Mar 9 21:45:46 GMT 2026


Package: node-lib0
Version: 0.2.114-1
Followup-For: Bug #1115810

This is a bug in the way types are defined:

SimpleDiff<T extends string> constrains T to string,
but simpleDiffArray tries to use SimpleDiff<T[]>
and T[] doesn't satisfy extends string.

A fix would be
SimpleDiff<T extends string | unknown[]>



Jérémy


More information about the Pkg-javascript-devel mailing list