permission-react: more restrictive typing for usePermission and PermissionedRoute

Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com>
This commit is contained in:
Mike Lewis
2022-03-07 17:39:37 +00:00
committed by Joe Porpeglia
parent 9da18e4715
commit 5bdcb8c45d
4 changed files with 70 additions and 22 deletions
+5
View File
@@ -0,0 +1,5 @@
---
'@backstage/plugin-permission-react': minor
---
**BREAKING**: More restrictive typing for `usePermission` hook and `PermissionedRoute` component. It's no longer possible to pass a `resourceRef` unless the permission is of type `ResourcPermission`.