import clsx from 'clsx'
// ✔️ Ok
clsx('')
// ✔️ Ok
clsx.clsx('')
// ✔️ Runtime error and type error
clsx.default('')
// ✗ TypeError
import { clsx } from 'clsx'
import clsx from 'clsx'
// ✔️ Ok
clsx('')
// ✗ TypeError
clsx.clsx('')
// ✔️ Type error and runtime error
clsx.default('')
// ✔️ Ok
import { clsx } from 'clsx'
After
import clsx from 'clsx'
// ✔️ Ok
clsx('')
// ✔️ Ok
clsx.clsx('')
// ✔️ Type error and runtime error
clsx.default('')
// ✔️ Ok
import { clsx } from 'clsx'
This only includes the TypeScript type fixes from #57.
CommonJS
Before
After
Before
After
Before
After