File tree 1 file changed +6
-7
lines changed
1 file changed +6
-7
lines changed Original file line number Diff line number Diff line change 1
1
/* eslint-disable @typescript-eslint/consistent-type-definitions */
2
- import type { EventCallable , Store } from 'effector' ;
2
+ import type { EventCallable , Show , Store } from 'effector' ;
3
3
import type { useUnit } from 'effector-react' ;
4
4
import type { ComponentType , FC , PropsWithChildren , ReactHTML } from 'react' ;
5
5
@@ -37,12 +37,11 @@ type BindFromProps<Props> = {
37
37
* Props that are "taken" by Bind object are made **optional** in the final type,
38
38
* so it is possible to owerrite them in the component usage anyway
39
39
*/
40
- type FinalProps < Props , Bind extends BindFromProps < Props > > = Omit <
41
- Props ,
42
- keyof Bind
43
- > & {
44
- [ K in Extract < keyof Bind , keyof Props > ] ?: Props [ K ] ;
45
- } ;
40
+ type FinalProps < Props , Bind extends BindFromProps < Props > > = Show <
41
+ Omit < Props , keyof Bind > & {
42
+ [ K in Extract < keyof Bind , keyof Props > ] ?: Props [ K ] ;
43
+ }
44
+ > ;
46
45
47
46
// relfect types
48
47
/**
You can’t perform that action at this time.
0 commit comments