Skip to content

Commit 4867366

Browse files
committed
Use type-only imports for axios
TypeScript type checker complains about imported types in clients generated for axios backend Type-only imports: https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-8.html#type-only-imports-and-export
1 parent 59254d9 commit 4867366

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/templates/core/axios/request.hbs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{{>header}}
22

3-
import axios, { AxiosError, AxiosRequestConfig, AxiosResponse } from 'axios';
3+
import axios, { AxiosError, type AxiosRequestConfig, type AxiosResponse } from 'axios';
44
import FormData from 'form-data';
55

66
import { ApiError } from './ApiError';

0 commit comments

Comments
 (0)