fix: allow `bigint` in typings #96
- VI
`ReactNode` from `@types/react` now includes `bigint` (and its `0n` zero which is falsy) and that is incompatible with `clsx` in these scenarios:
```tsx 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'. ```
lukeedmentioned2 years ago on GitHub
lukeedsubscribed2 years ago on GitHub
Netailreferenced this in fix: new @types/react support #3922 years ago on GitHub
- LU
Thanks! I’ll merge and publish tomorrow. Traveling for work right now & haven’t had a chance to open laptop
lukeedmerged 3d960ab0fd7c2 years ago on GitHub
- LU
Included in `2.1.1`
snyk-io[bot]referenced this in [Snyk] Upgrade clsx from 2.1.0 to 2.1.1 #42 years ago on GitHub
vigneshshettyinreferenced this in [Snyk] Upgrade clsx from 2.1.0 to 2.1.1 #962 years ago on GitHub
thomassimmerreferenced this in [Snyk] Upgrade clsx from 2.1.0 to 2.1.1 #82 years ago on GitHub
rong4ivyreferenced this in [Snyk] Upgrade clsx from 2.1.0 to 2.1.1 #42 years ago on GitHub
JuanPabloDiazreferenced this in [Snyk] Upgrade clsx from 2.1.0 to 2.1.1 #212 years ago on GitHub
rsazreferenced this in [Snyk] Upgrade clsx from 2.0.0 to 2.1.1 #512 years ago on GitHub
angelorealereferenced this in [Snyk] Upgrade clsx from 2.1.0 to 2.1.1 #52 years ago on GitHub
filipeoliveiraareferenced this in [Snyk] Upgrade clsx from 2.1.0 to 2.1.1 #72 years ago on GitHub
zntbreferenced this in [Snyk] Upgrade clsx from 2.1.0 to 2.1.1 #292 years ago on GitHub
zntbreferenced this in [Snyk] Upgrade clsx from 2.1.0 to 2.1.1 #332 years ago on GitHub
ZeroXClemreferenced this in [Snyk] Upgrade clsx from 2.1.0 to 2.1.1 #52 years ago on GitHub
salgadevreferenced this in [Snyk] Upgrade clsx from 2.0.0 to 2.1.1 #172 years ago on GitHub
zntbreferenced this in [Snyk] Upgrade: , , clsx, lucide-react, next-themes, react-hook-form, react-router-dom, tailwind-merge #262 years ago on GitHub
wierzareferenced this in [Snyk] Upgrade clsx from 2.0.0 to 2.1.1 #1472 years ago on GitHub
Netailunsubscribedlast year on GitHub
- SA
<!-- This --> <span class:list={[ 'hello goodbye', { world: true }, [ 'friend' ] ]} /> <!-- Becomes --> <span class="hello goodbye world friend"></span>
coderabbitai[bot]referenced this in [FEAT] 개인 캘린더 — 상세 조회 리스트 아이템 마커 정렬 · 완료 상태 라벨 #133 #1353 months ago on GitHub