refactor(ivy): pre-factor: set explicit type parameters for ModuleWithProviders (#25970)
Ivy depends on having the generic type token later when reading the ModuleWithProviders from a .d.ts file. PR Close #25970
This commit is contained in:
@ -100,7 +100,7 @@ export class HttpClientXsrfModule {
|
||||
/**
|
||||
* Disable the default XSRF protection.
|
||||
*/
|
||||
static disable(): ModuleWithProviders {
|
||||
static disable(): ModuleWithProviders<HttpClientXsrfModule> {
|
||||
return {
|
||||
ngModule: HttpClientXsrfModule,
|
||||
providers: [
|
||||
@ -120,7 +120,7 @@ export class HttpClientXsrfModule {
|
||||
static withOptions(options: {
|
||||
cookieName?: string,
|
||||
headerName?: string,
|
||||
} = {}): ModuleWithProviders {
|
||||
} = {}): ModuleWithProviders<HttpClientXsrfModule> {
|
||||
return {
|
||||
ngModule: HttpClientXsrfModule,
|
||||
providers: [
|
||||
|
Reference in New Issue
Block a user