authz: remove superfluous union type

PermissionCriteria<TQuery> is a union type which already includes
TQuery itself, so we don't need a second union here.

Signed-off-by: Mike Lewis <mtlewis@users.noreply.github.com>
This commit is contained in:
Mike Lewis
2021-11-12 13:43:59 +00:00
parent 75dd00c8b6
commit 5c5a1d16e4
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -49,5 +49,5 @@ export type PermissionRule<
* can be used for loading a collection of resources efficiently with conditional criteria already
* applied.
*/
toQuery(...params: TParams): TQuery | PermissionCriteria<TQuery>;
toQuery(...params: TParams): PermissionCriteria<TQuery>;
};