babel-plugin-classnames icon indicating copy to clipboard operation
babel-plugin-classnames copied to clipboard

Doesn't work with Typescript

Open JuanM04 opened this issue 4 years ago • 0 comments

Adding these definitions to a .d.ts also doesn't work:

import { ClassArray } from 'classnames/types'

declare module 'react' {
  interface HTMLAttributes<T> extends DOMAttributes<T> {
    className?: string | ClassArray
  }
}

JuanM04 avatar Jan 11 '21 22:01 JuanM04