Skip to content

Commit 2099d92

Browse files
committed
fix(resource-enforcer): make request as any since ts compiler ignores it
1 parent b98b8a6 commit 2099d92

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/decorators/resource.enforcer.decorator.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { SetMetadata, CustomDecorator, ExecutionContext, Request } from '@nestjs/common'
1+
import { SetMetadata, CustomDecorator, ExecutionContext } from '@nestjs/common'
22

33
export const META_RESOURCE_ENFORCER = 'keycloak-resource-enforcer'
44

@@ -12,5 +12,5 @@ export interface ResourceDecoratorOptions {
1212
}
1313

1414
export interface ResourceDecoratorReq {
15-
(req: Request, context: ExecutionContext): Promise<string> | string
15+
(req: any, context: ExecutionContext): Promise<string> | string
1616
}

0 commit comments

Comments
 (0)