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 1
1
import {
2
2
type DescriptorFn ,
3
3
type DefaultDecoratorArgs ,
4
- } from '@/decorators/ types' ;
5
- import { createDecorator } from '@/decorators/ utils' ;
4
+ } from '@/types/decorators.type ' ;
5
+ import { createDecorator } from '@/utils/decorators ' ;
6
6
7
7
interface LogMessageDecoratorArgs {
8
8
message : string ;
Original file line number Diff line number Diff line change @@ -9,7 +9,7 @@ export type DefaultDecoratorArgs = [unknown];
9
9
*/
10
10
export type DecoratorArgs <
11
11
T extends DefaultDecoratorArgs = DefaultDecoratorArgs ,
12
- > = T extends [ ] ? [ string , number ] : T ;
12
+ > = T extends never [ ] ? [ string , number ] : T ;
13
13
14
14
/**
15
15
* 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 3
3
type DefaultDecoratorArgs ,
4
4
type DescriptorFn ,
5
5
type GeneratedDecorator ,
6
- } from '. /types' ;
6
+ } from '@ /types/decorators.type ' ;
7
7
import logger from '@/lib/logger' ;
8
8
9
9
/**
You can’t perform that action at this time.
0 commit comments