authz: switch to unknown[] in PermissionRule type parameter

Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com>
This commit is contained in:
Mike Lewis
2021-11-11 13:56:07 +00:00
parent 4083fcdb5e
commit f3d2ccfeb8
+5 -1
View File
@@ -29,7 +29,11 @@ import type { PermissionCriteria } from '@backstage/permission-common';
* check was performed.
* @public
*/
export type PermissionRule<TResource, TQuery, TParams extends any[] = any> = {
export type PermissionRule<
TResource,
TQuery,
TParams extends unknown[] = unknown[],
> = {
name: string;
description: string;