Skip to content

Commit 040f8d3

Browse files
authored
Merge pull request #2 from TassoDigital/bugfix/axios-type
Use correct axios header type
2 parents b693144 + 2fceeb9 commit 040f8d3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/openapi-generator/src/main/resources/typescript-nestjs/api.service.mustache

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
import { Inject, Injectable, Optional } from '@nestjs/common';
55
import { HttpService } from '@nestjs/axios';
6-
import { AxiosResponse } from 'axios';
6+
import { AxiosResponse, AxiosRequestHeaders } from 'axios';
77
import { Observable } from 'rxjs';
88
{{#imports}}
99
import { {{classname}} } from '../{{filename}}';
@@ -29,7 +29,7 @@ export class {{classname}} {
2929
{{/withInterfaces}}
3030

3131
protected basePath = '{{{basePath}}}';
32-
public defaultHeaders = new Map()
32+
public defaultHeaders: AxiosRequestHeaders = {};
3333
public configuration = new Configuration();
3434

3535
constructor(protected httpClient: HttpService, @Optional() configuration: Configuration) {

0 commit comments

Comments
 (0)