diff --git a/types/rbac-a/index.d.ts b/types/rbac-a/index.d.ts index 58dec7157d..822a3f7cee 100644 --- a/types/rbac-a/index.d.ts +++ b/types/rbac-a/index.d.ts @@ -40,7 +40,7 @@ export class Provider { * The method mey return a promise resolving with the * expected return value. */ - getPermission(role: any): string[] | Promise; + getPermission(role: string): string[] | Promise; /** * Return all attributes for the specified role. The return value must * be an array. Return an empty array if role is missing or if no @@ -49,7 +49,7 @@ export class Provider { * The method mey return a promise resolving with the * expected return value. */ - getAttributes(role: any): string[] | Promise; + getAttributes(role: string): string[] | Promise; } export type AttributeFunction = (user: any, role: string, params: object) => any;