Skip to content

Commit

Permalink
fix(core): Use correct return types for decorators
Browse files Browse the repository at this point in the history
  • Loading branch information
TriPSs committed Oct 29, 2021
1 parent 1567614 commit d328d2b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,4 +12,4 @@ export const InjectAssemblerQueryService = <
UE = CE,
>(
AssemblerClass: Class<Assembler<DTO, Entity, C, CE, U, UE>>,
): ParameterDecorator => Inject(getAssemblerQueryServiceToken(AssemblerClass));
): ReturnType<typeof Inject> => Inject(getAssemblerQueryServiceToken(AssemblerClass));
Original file line number Diff line number Diff line change
Expand Up @@ -2,5 +2,5 @@ import { Inject } from '@nestjs/common';
import { Class } from '../common';
import { getQueryServiceToken } from './helpers';

export const InjectQueryService = <DTO>(DTOClass: Class<DTO>): ParameterDecorator =>
export const InjectQueryService = <DTO>(DTOClass: Class<DTO>): ReturnType<typeof Inject> =>
Inject(getQueryServiceToken(DTOClass));

0 comments on commit d328d2b

Please sign in to comment.