Commit b649228 1 parent b1eab98 commit b649228 Copy full SHA for b649228
File tree 2 files changed +1
-4
lines changed
2 files changed +1
-4
lines changed Original file line number Diff line number Diff line change 30
30
"build:esm" : " tsc --declaration --module es2015 --outDir esm" ,
31
31
"build:umd" : " rollup --config"
32
32
},
33
- "peerDependencies" : {
34
- "@types/react" : " >=16.8.0 || >=17.0.0"
35
- },
36
33
"dependencies" : {
37
34
"@formily/path" : " 2.0.0-beta.41" ,
38
35
"camel-case" : " ^4.1.1" ,
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ export const isNumberLike = (index: any): index is number =>
18
18
isNum ( index ) || / ^ \d + $ / . test ( index )
19
19
export const isObj = ( val : unknown ) : val is object => typeof val === 'object'
20
20
export const isRegExp = isType < RegExp > ( 'RegExp' )
21
- export const isReactElement = ( obj : any ) : obj is React . ReactElement < any > =>
21
+ export const isReactElement = ( obj : any ) : boolean =>
22
22
obj && obj [ '$$typeof' ] && obj [ '_owner' ]
23
23
export const isHTMLElement = ( target : any ) : target is EventTarget => {
24
24
return Object . prototype . toString . call ( target ) . indexOf ( 'HTML' ) > - 1
You can’t perform that action at this time.
0 commit comments