ReactNode from @types/react now includes bigint (and its 0n zero which is falsy) and that is incompatible with clsx in these scenarios:
declare const x: ReactNode
const className = clsx(x && 'some-class')
// Argument of type 'false | "" | 0 | 0n | "some-class" | null | undefined' is not assignable to parameter of type 'ClassValue'.
// Type '0n' is not assignable to type 'ClassValue'.
ReactNode
from@types/react
now includesbigint
(and its0n
zero which is falsy) and that is incompatible withclsx
in these scenarios: