File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -35,6 +35,7 @@ export {
3535 ArgumentsHost ,
3636 INestExpressApplication ,
3737 INestFastifyApplication ,
38+ ForwardReference ,
3839} from './interfaces' ;
3940export * from './interceptors' ;
4041export * from './services/logger.service' ;
Original file line number Diff line number Diff line change @@ -29,4 +29,5 @@ export * from './features/arguments-host.interface';
2929export * from './nest-express-application.interface' ;
3030export * from './nest-fastify-application.interface' ;
3131export * from './modules/provider.interface' ;
32- export * from './type.interface' ;
32+ export * from './type.interface' ;
33+ export * from './modules/forward-reference.interface' ;
Original file line number Diff line number Diff line change 1+ export interface ForwardReference < T = any > {
2+ forwardRef : T ;
3+ }
Original file line number Diff line number Diff line change @@ -2,4 +2,5 @@ export * from './module-metadata.interface';
22export * from './nest-module.interface' ;
33export * from './on-init.interface' ;
44export * from './dynamic-module.interface' ;
5- export * from './provider.interface' ;
5+ export * from './provider.interface' ;
6+ export * from './forward-reference.interface' ;
Original file line number Diff line number Diff line change @@ -3,14 +3,15 @@ import { Controller } from '../controllers/controller.interface';
33import { DynamicModule } from './dynamic-module.interface' ;
44import { Type } from '../type.interface' ;
55import { Provider } from './provider.interface' ;
6+ import { ForwardReference } from './forward-reference.interface' ;
67
78export interface ModuleMetadata {
8- imports ?: Array < Type < any > | DynamicModule | any [ ] > ;
9+ imports ?: Array < Type < any > | DynamicModule | ForwardReference > ;
910 controllers ?: Type < any > [ ] ;
1011 providers ?: Provider [ ] ;
11- exports ?: Array < DynamicModule | string | Provider | any [ ] > ;
12+ exports ?: Array < DynamicModule | string | Provider | ForwardReference > ;
1213 /** @deprecated */
13- modules ?: Array < Type < any > | DynamicModule | any [ ] > ;
14+ modules ?: Array < Type < any > | DynamicModule | ForwardReference > ;
1415 /** @deprecated */
1516 components ?: Provider [ ] ;
1617}
Original file line number Diff line number Diff line change 1- export const forwardRef = ( fn : ( ) => any ) => ( { forwardRef : fn } ) ;
1+ import { ForwardReference } from '../interfaces/modules/forward-reference.interface' ;
2+
3+ export const forwardRef = ( fn : ( ) => any ) : ForwardReference => ( {
4+ forwardRef : fn ,
5+ } ) ;
You can’t perform that action at this time.
0 commit comments