Skip to content

Commit 989c8e7

Browse files
committed
fix(authorizer): add generic type to authorizerRelation method
1 parent cda8127 commit 989c8e7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

packages/query-graphql/src/auth/authorizer.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ export interface Authorizer<DTO> extends CustomAuthorizer<DTO> {
3838
// eslint-disable-next-line @typescript-eslint/explicit-module-boundary-types,@typescript-eslint/no-explicit-any
3939
authorize(context: any, authorizerContext: AuthorizationContext): Promise<Filter<DTO>>
4040

41-
authorizeRelation(
41+
authorizeRelation<Relation = unknown>(
4242
relationName: string,
4343
// eslint-disable-next-line @typescript-eslint/no-explicit-any
4444
context: any,
4545
authorizerContext: AuthorizationContext
46-
): Promise<Filter<unknown> | undefined>
46+
): Promise<Filter<Relation> | undefined>
4747
}

0 commit comments

Comments
 (0)