Skip to content

Commit 6e4ee60

Browse files
authored
Templatized ModuleWithProviders in typescript-angular
The call ModuleWithProviders requires a template: https://angular.io/api/core/ModuleWithProviders Apparently, in Angular 10, this is strictly enforced
1 parent e64828e commit 6e4ee60

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/resources/handlebars/typescript-angular/api.module.mustache

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ import { {{classname}} } from './{{importPath}}';
1818
{{/hasMore}}{{/apis}}{{/apiInfo}} ]
1919
})
2020
export class ApiModule {
21-
public static forRoot(configurationFactory: () => Configuration): ModuleWithProviders {
21+
public static forRoot(configurationFactory: () => Configuration): ModuleWithProviders<ApiModule> {
2222
return {
2323
ngModule: ApiModule,
2424
providers: [ { provide: Configuration, useFactory: configurationFactory } ]

0 commit comments

Comments
 (0)