@@ -388,6 +388,7 @@ export type DashboardComponent = ComponentType<WithPermissionsChildrenParams>;
388
388
389
389
export interface LayoutProps {
390
390
appBar ?: ComponentType ;
391
+ children ?: ReactNode ;
391
392
dashboard ?: DashboardComponent ;
392
393
logout ?: ReactNode ;
393
394
menu ?: ComponentType < {
@@ -402,7 +403,7 @@ export interface LayoutProps {
402
403
export type LayoutComponent = ComponentType < LayoutProps > ;
403
404
404
405
export interface ResourceComponentInjectedProps {
405
- basePath : string ;
406
+ basePath ? : string ;
406
407
permissions ?: any ;
407
408
resource ?: string ;
408
409
options ?: any ;
@@ -416,7 +417,7 @@ export interface ResourceComponentProps<
416
417
Params extends { [ K in keyof Params ] ?: string } = { } ,
417
418
C extends StaticContext = StaticContext ,
418
419
S = LocationState
419
- > extends RouteComponentProps < Params , C , S > ,
420
+ > extends Partial < RouteComponentProps < Params , C , S > > ,
420
421
ResourceComponentInjectedProps { }
421
422
422
423
// deprecated name, use ResourceComponentProps instead
@@ -426,9 +427,9 @@ export interface ResourceComponentPropsWithId<
426
427
Params extends { id ?: string } = { } ,
427
428
C extends StaticContext = StaticContext ,
428
429
S = LocationState
429
- > extends RouteComponentProps < Params , C , S > ,
430
+ > extends Partial < RouteComponentProps < Params , C , S > > ,
430
431
ResourceComponentInjectedProps {
431
- id : string ;
432
+ id ? : string ;
432
433
}
433
434
434
435
// deprecated name, use ResourceComponentPropsWithId instead
0 commit comments