File tree Expand file tree Collapse file tree 4 files changed +7
-4
lines changed Expand file tree Collapse file tree 4 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 11import {
22 type DescriptorFn ,
33 type DefaultDecoratorArgs ,
4- } from '@/decorators/ types' ;
5- import { createDecorator } from '@/decorators/ utils' ;
4+ } from '@/types/decorators.type ' ;
5+ import { createDecorator } from '@/utils/decorators ' ;
66
77interface LogMessageDecoratorArgs {
88 message : string ;
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ export type DefaultDecoratorArgs = [unknown];
99 */
1010export type DecoratorArgs <
1111 T extends DefaultDecoratorArgs = DefaultDecoratorArgs ,
12- > = T extends [ ] ? [ string , number ] : T ;
12+ > = T extends never [ ] ? [ string , number ] : T ;
1313
1414/**
1515 * Function type definition for a decorator. This function can accept multiple arguments based on `TArgs`
Original file line number Diff line number Diff line change 1+ export type * as Environment from './environment.type' ;
2+ export type * as Common from './common.type' ;
3+ export type * as Decorators from './decorators.type' ;
Original file line number Diff line number Diff line change 33 type DefaultDecoratorArgs ,
44 type DescriptorFn ,
55 type GeneratedDecorator ,
6- } from '. /types' ;
6+ } from '@ /types/decorators.type ' ;
77import logger from '@/lib/logger' ;
88
99/**
You can’t perform that action at this time.
0 commit comments