Skip to content
This repository was archived by the owner on Jun 22, 2021. It is now read-only.

Commit eed4f79

Browse files
committed
Add module type to ModuleWithProviders
1 parent 57ce0a8 commit eed4f79

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/modules/arithmetic.module.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ export class ArithmeticModule {
2626
/**
2727
* Use in AppModule: new instance of SumService.
2828
*/
29-
public static forRoot(): ModuleWithProviders {
29+
public static forRoot(): ModuleWithProviders<ArithmeticModule> {
3030
return {
3131
ngModule: ArithmeticModule,
3232
providers: [SumService]
@@ -36,7 +36,7 @@ export class ArithmeticModule {
3636
/**
3737
* Use in features modules with lazy loading: new instance of SumService.
3838
*/
39-
public static forChild(): ModuleWithProviders {
39+
public static forChild(): ModuleWithProviders<ArithmeticModule> {
4040
return {
4141
ngModule: ArithmeticModule,
4242
providers: [SumService]

0 commit comments

Comments
 (0)