Skip to content

Commit 9448c2a

Browse files
committed
fix: correct parameter name in modifyResourceConfig method for consistency
1 parent b2c6d4a commit 9448c2a

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

adminforth/basePlugin.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ export default class AdminForthPlugin implements IAdminForthPlugin {
3636
return 'non-uniquely-identified';
3737
}
3838

39-
modifyResourceConfig(adminforth: IAdminForth, resourceConfig: AdminForthResource, allPluginInstances?: {pi: AdminForthPlugin, resourceConfig: AdminForthResource}[]) {
39+
modifyResourceConfig(adminforth: IAdminForth, resourceConfig: AdminForthResource, allPluginInstances?: {pi: AdminForthPlugin, resource: AdminForthResource}[]) {
4040
this.resourceConfig = resourceConfig;
4141
const uniqueness = this.instanceUniqueRepresentation(this.pluginOptions);
4242

adminforth/types/Back.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -455,7 +455,7 @@ export interface IAdminForthPlugin {
455455
* @param adminforth Instance of IAdminForth
456456
* @param resourceConfig Resource configuration object which will be modified by plugin
457457
*/
458-
modifyResourceConfig(adminforth: IAdminForth, resourceConfig: AdminForthResource, allPluginInstances?: {pi: IAdminForthPlugin, resourceConfig: AdminForthResource}[]): void;
458+
modifyResourceConfig(adminforth: IAdminForth, resourceConfig: AdminForthResource, allPluginInstances?: {pi: IAdminForthPlugin, resource: AdminForthResource}[]): void;
459459
componentPath(componentFile: string): string;
460460

461461
/**

0 commit comments

Comments
 (0)