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:
@@ -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>;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user