From 21539944ca4b4057dcce5ae70c83635a44fd1184 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tomek=20=C5=81aziuk?= Date: Tue, 5 Dec 2017 12:13:28 +0100 Subject: [PATCH] role type --- types/rbac-a/index.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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;