Skip to content
Myr

feat: add named `clsx` export alias (#44)

Before adoption: this commit came in with the history the project adopted, so no landing records it.

* Provide named export for clsx * update readme * update types * update test file

authored by danikaze · committed by GitHub · parent 74cefa6 · Browse files · 4 files+19 added−13 removed
This commit

State

Before adoption: this commit came in with the history the project adopted, so no landing records it.

Trailers

  • Co-authored-by: Luke Edwards <luke.edwards05@gmail.com>

Diff stats

4 files+19 added−13 removed

  • tests:+11 added−4 removed
  • other:+8 added−9 removed

4 files+19 added−13 removed

modified:src/index.js+3 added-1 removed
modified:test/index.js+11 added-4 removed
modified:clsx.d.ts+3 added-8 removed
modified:readme.md+2 added
18 unmodified lines
19## Usage2021```js22import clsx from 'clsx';23// or24import { clsx } from 'clsx';2526// Strings (variadic)27clsx('foo', true && 'bar', 'baz');28//=> 'foo bar baz'
60 unmodified lines