Skip to content

Commit 302ec62

Browse files
authored
Merge pull request #7422 from pocivaneuh/types/resource-options-label
[RFR] fix(types): missing resource options label property
2 parents fc0d8dd + 59f8288 commit 302ec62

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

packages/ra-core/src/types.ts

+6-1
Original file line numberDiff line numberDiff line change
@@ -464,6 +464,11 @@ export type ResourceMatch = Match<{
464464
id?: string;
465465
}>;
466466

467+
export interface ResourceOptions {
468+
label?: string;
469+
[key: string]: any;
470+
}
471+
467472
export interface ResourceProps {
468473
intent?: 'route' | 'registration';
469474
match?: ResourceMatch;
@@ -473,7 +478,7 @@ export interface ResourceProps {
473478
edit?: ComponentType<ResourceComponentPropsWithId>;
474479
show?: ComponentType<ResourceComponentPropsWithId>;
475480
icon?: ComponentType<any>;
476-
options?: object;
481+
options?: ResourceOptions;
477482
}
478483

479484
export interface AdminProps {

0 commit comments

Comments
 (0)