Skip to content

Commit ea9b321

Browse files
Merge pull request nestjs#3589 from tonyhallett/createguardsfunction-return-type-correction
refactor(core): change return type annotation to be exact
2 parents 202b6e4 + a69dd62 commit ea9b321

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

packages/core/router/router-execution-context.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -325,7 +325,7 @@ export class RouterExecutionContext {
325325
instance: Controller,
326326
callback: (...args: any[]) => any,
327327
contextType?: TContext,
328-
): Function | null {
328+
): (args: any[]) => Promise<void> | null {
329329
const canActivateFn = async (args: any[]) => {
330330
const canActivate = await this.guardsConsumer.tryActivate<TContext>(
331331
guards,

0 commit comments

Comments
 (0)