8000 chore: fix typings · coreui/coreui-icons-react@77b918e · GitHub
[go: up one dir, main page]

Skip to content

Commit 77b918e

Browse files
committed
chore: fix typings
1 parent 735b5a0 commit 77b918e

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/index.d.ts

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
1-
interface CIcon {
1+
import { HTMLProps } from 'react'
2+
type Omit<T, K extends keyof T> = Pick<T, Exclude<keyof T, K>>
3+
4+
interface CIcon extends Omit<HTMLProps<any>, 'content' | 'size'> {
25
className?: string
36
name?: string
47
content?: string | Array<string>
@@ -9,6 +12,7 @@ interface CIcon {
912
use?: string
1013
}
1114

12-
export declare const CIcon: (props: CIcon) => any
15+
declare const CIcon: (props: CIcon) => any
1316

14-
export default (props: CIcon) => any
17+
export { CIcon }
18+
export default CIcon

0 commit comments

Comments
 (0)
0