Skip to content

Commit

Permalink
fix(core): minor reflector type issue
Browse files Browse the repository at this point in the history
  • Loading branch information
kamilmysliwiec committed Aug 22, 2023
1 parent 4b47135 commit 207fc24
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/core/services/reflector.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -118,8 +118,8 @@ export class Reflector {
targets: (Type<any> | Function)[],
): T extends ReflectableDecorator<infer R>
? R extends Array<any>
? R[]
: R
? R
: R[]
: unknown;
/**
* Retrieve metadata for a specified key for a specified set of targets.
Expand Down

0 comments on commit 207fc24

Please sign in to comment.