|
@@ -1,6 +1,6 @@
|
1
|
1
|
import { Options, OptionsSplitView } from './Options';
|
2
|
2
|
|
3
|
|
-export interface LayoutComponent {
|
|
3
|
+export interface LayoutComponent<P = {}> {
|
4
|
4
|
/**
|
5
|
5
|
* Component reference id, Auto generated if empty
|
6
|
6
|
*/
|
|
@@ -16,7 +16,7 @@ export interface LayoutComponent {
|
16
|
16
|
/**
|
17
|
17
|
* Properties to pass down to the component
|
18
|
18
|
*/
|
19
|
|
- passProps?: object;
|
|
19
|
+ passProps?: P;
|
20
|
20
|
}
|
21
|
21
|
|
22
|
22
|
export interface LayoutStackChildren {
|
|
@@ -118,11 +118,11 @@ export interface LayoutRoot {
|
118
|
118
|
overlays?: any;
|
119
|
119
|
}
|
120
|
120
|
|
121
|
|
-export interface Layout {
|
|
121
|
+export interface Layout<P = {}> {
|
122
|
122
|
/**
|
123
|
123
|
* Set the component
|
124
|
124
|
*/
|
125
|
|
- component?: LayoutComponent;
|
|
125
|
+ component?: LayoutComponent<P>;
|
126
|
126
|
/**
|
127
|
127
|
* Set the stack
|
128
|
128
|
*/
|