File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -17,17 +17,20 @@ import { UISrefActiveConsumer } from './UISrefActive';
17
17
let classNames = _classNames ;
18
18
19
19
export interface UISrefProps {
20
- router : UIRouterReact ;
21
- addStateInfoToParentActive : Function ;
22
- parentUIView : UIViewAddress ;
23
20
children ?: any ;
24
21
to : string ;
25
22
params ?: { [ key : string ] : any } ;
26
23
options ?: TransitionOptions ;
27
24
className ?: string ;
28
25
}
29
26
30
- class Sref extends Component < UISrefProps , any > {
27
+ interface SrefProps extends UISrefProps {
28
+ router : UIRouterReact ;
29
+ addStateInfoToParentActive : Function ;
30
+ parentUIView : UIViewAddress ;
31
+ }
32
+
33
+ class Sref extends Component < SrefProps , any > {
31
34
// deregister function for parent UISrefActive
32
35
deregister : Function ;
33
36
static propTypes = {
@@ -90,7 +93,7 @@ class Sref extends Component<UISrefProps, any> {
90
93
}
91
94
}
92
95
93
- export const UISref = props => (
96
+ export const UISref = ( props : UISrefProps ) => (
94
97
< UIRouterConsumer >
95
98
{ router => (
96
99
< UIViewConsumer >
You can’t perform that action at this time.
0 commit comments