openapistack / openapi-client-axios

JavaScript client library for consuming OpenAPI-enabled APIs with axios
https://openapistack.co
MIT License
558 stars 67 forks source link

Use import type #83

Closed nponeccop closed 2 years ago

nponeccop commented 3 years ago

Currently the following code is generated:

import {
  OpenAPIClient,
  Parameters,
  UnknownParamsObject,
  OperationResponse,
  AxiosRequestConfig,
} from 'openapi-client-axios';

However, import type could be used instead (see "Type-Only Imports and Export" in https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-8.html )