File tree Expand file tree Collapse file tree 3 files changed +2
-5
lines changed
Expand file tree Collapse file tree 3 files changed +2
-5
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " zeego" ,
3- "version" : " 1.7.3 " ,
3+ "version" : " 1.8.0 " ,
44 "description" : " Logical UI primitives, made for screens." ,
55 "main" : " lib/commonjs/index" ,
66 "module" : " lib/module/index" ,
Original file line number Diff line number Diff line change @@ -85,11 +85,9 @@ export const pickChildren = <Props = any>(
8585 }
8686}
8787
88- type PropsFromElementType < T > = T extends React . ElementType < infer P > ? P : never
89-
9088export const isInstanceOfComponent = < Props > (
9189 element : React . ReactElement | React . ReactText | undefined ,
92- targetElement : React . ComponentType < Props >
90+ targetElement : React . ComponentType < Props > | React . ElementType < Props >
9391) : element is NonNullable < React . ReactElement < Props > > => {
9492 const matches =
9593 ( element as any ) ?. type === targetElement ||
Original file line number Diff line number Diff line change 77 "allowUnreachableCode" : false ,
88 "allowUnusedLabels" : false ,
99 "esModuleInterop" : true ,
10- "importsNotUsedAsValues" : " error" ,
1110 "forceConsistentCasingInFileNames" : true ,
1211 "jsx" : " react" ,
1312 "lib" : [" esnext" , " DOM" ],
You can’t perform that action at this time.
0 commit comments