lukeed/clsxPublic

A tiny (239B) utility for constructing `className` strings conditionally.

feat: add dedicated type declarations for clsx/lite #126

ClosedDakshSinghDhamiclosed 2 commits intomasterfromrefs/pull/126/head
  1. DA

    ### Problem

    `clsx/lite` reuses the main clsx type declarations, showing a type signature that accepts objects and arrays even though the lite version only processes truthy string values.

    ### Changes

    - Created `lite.d.ts` and `lite.d.mts` with the correct, restricted type signatures for the lite variant - Updated `package.json` exports to resolve `./lite` types to the new declaration files

    Closes #92

  2. DakshSinghDhamiclosed2 months ago on GitHub