File tree 2 files changed +3
-3
lines changed
2 files changed +3
-3
lines changed Original file line number Diff line number Diff line change 1
1
import React from 'react' ;
2
- import Icon , { IconProps } from '@uiw/react-icon' ;
2
+ import Icon , { IconProps , TagType } from '@uiw/react-icon' ;
3
3
import { HTMLSpanProps , noop } from '@uiw/utils' ;
4
4
import './style/index.less' ;
5
5
import { useState } from 'react' ;
@@ -9,7 +9,7 @@ export interface AvatarProps extends HTMLSpanProps {
9
9
style ?: React . CSSProperties ;
10
10
className ?: string ;
11
11
prefixCls ?: string ;
12
- icon ?: IconProps [ 'type' ] ;
12
+ icon ?: IconProps < TagType > [ 'type' ] ;
13
13
alt ?: string ;
14
14
src ?: string ;
15
15
size ?: 'large' | 'default' | 'small' | 'mini' ;
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ import svgPaths from '@uiw/icons/fonts/w-icon.json';
3
3
import './style/index.less' ;
4
4
5
5
export type IconsName = keyof typeof svgPaths ;
6
- type TagType = React . ElementType | keyof JSX . IntrinsicElements ;
6
+ export type TagType = React . ElementType | keyof JSX . IntrinsicElements ;
7
7
type ElementProps < T extends TagType , E = React . ReactElement > = {
8
8
fill ?: string ;
9
9
style ?: React . CSSProperties ;
You can’t perform that action at this time.
0 commit comments