|
@@ -62,7 +62,12 @@ export class Navigation {
|
62
|
62
|
* Utility helper function like registerComponent,
|
63
|
63
|
* wraps the provided component with a react-redux Provider with the passed redux store
|
64
|
64
|
*/
|
65
|
|
- public registerComponentWithRedux(componentName: string, getComponentClassFunc: ComponentProvider, ReduxProvider: any, reduxStore: any): ComponentType<any> {
|
|
65
|
+ public registerComponentWithRedux(
|
|
66
|
+ componentName: string,
|
|
67
|
+ getComponentClassFunc: ComponentProvider,
|
|
68
|
+ ReduxProvider: any,
|
|
69
|
+ reduxStore: any
|
|
70
|
+ ): ComponentType<any> {
|
66
|
71
|
return this.componentRegistry.registerComponent(componentName, getComponentClassFunc, ReduxProvider, reduxStore);
|
67
|
72
|
}
|
68
|
73
|
|
|
@@ -97,14 +102,14 @@ export class Navigation {
|
97
|
102
|
/**
|
98
|
103
|
* Dismiss a modal by componentId. The dismissed modal can be anywhere in the stack.
|
99
|
104
|
*/
|
100
|
|
- public dismissModal(componentId: string, mergeOptions?): Promise<any> {
|
|
105
|
+ public dismissModal(componentId: string, mergeOptions?: Options): Promise<any> {
|
101
|
106
|
return this.commands.dismissModal(componentId, mergeOptions);
|
102
|
107
|
}
|
103
|
108
|
|
104
|
109
|
/**
|
105
|
110
|
* Dismiss all Modals
|
106
|
111
|
*/
|
107
|
|
- public dismissAllModals(mergeOptions?): Promise<any> {
|
|
112
|
+ public dismissAllModals(mergeOptions?: Options): Promise<any> {
|
108
|
113
|
return this.commands.dismissAllModals(mergeOptions);
|
109
|
114
|
}
|
110
|
115
|
|
|
@@ -118,21 +123,21 @@ export class Navigation {
|
118
|
123
|
/**
|
119
|
124
|
* Pop a component from the stack, regardless of it's position.
|
120
|
125
|
*/
|
121
|
|
- public pop(componentId: string, mergeOptions?): Promise<any> {
|
|
126
|
+ public pop(componentId: string, mergeOptions?: Options): Promise<any> {
|
122
|
127
|
return this.commands.pop(componentId, mergeOptions);
|
123
|
128
|
}
|
124
|
129
|
|
125
|
130
|
/**
|
126
|
131
|
* Pop the stack to a given component
|
127
|
132
|
*/
|
128
|
|
- public popTo(componentId: string, mergeOptions?): Promise<any> {
|
|
133
|
+ public popTo(componentId: string, mergeOptions?: Options): Promise<any> {
|
129
|
134
|
return this.commands.popTo(componentId, mergeOptions);
|
130
|
135
|
}
|
131
|
136
|
|
132
|
137
|
/**
|
133
|
138
|
* Pop the component's stack to root.
|
134
|
139
|
*/
|
135
|
|
- public popToRoot(componentId: string, mergeOptions?): Promise<any> {
|
|
140
|
+ public popToRoot(componentId: string, mergeOptions?: Options): Promise<any> {
|
136
|
141
|
return this.commands.popToRoot(componentId, mergeOptions);
|
137
|
142
|
}
|
138
|
143
|
|