- Minor update in documentation

- Bumped version
This commit is contained in:
Ferdi Koomen 2021-11-14 09:11:25 +01:00
parent 7e8d66b90a
commit d482a5716d
2 changed files with 1 additions and 14 deletions

View File

@ -459,18 +459,11 @@ classes in NodeJS).
npm install axios --save-dev
npm install cross-blob@2.x --save-dev
npm install form-data@4.x --save-dev
npm install node-fetch@2.x --save-dev
```
In order to compile the project and resolve the imports, you will need to enable the `allowSyntheticDefaultImports`
in your `tsconfig.json` file.
```json
{
"allowSyntheticDefaultImports": true
}
```
### Node-Fetch support
By default, this tool will generate a client that is compatible with the (browser based) Fetch API.
@ -496,12 +489,6 @@ npm install node-fetch@2.x --save-dev
In order to compile the project and resolve the imports, you will need to enable the `allowSyntheticDefaultImports`
in your `tsconfig.json` file.
```json
{
"allowSyntheticDefaultImports": true
}
```
[npm-url]: https://npmjs.org/package/openapi-typescript-codegen
[npm-image]: https://img.shields.io/npm/v/openapi-typescript-codegen.svg

View File

@ -1,6 +1,6 @@
{
"name": "openapi-typescript-codegen",
"version": "0.12.0",
"version": "0.12.1",
"description": "Library that generates Typescript clients based on the OpenAPI specification.",
"author": "Ferdi Koomen",
"homepage": "https://github.com/ferdikoomen/openapi-typescript-codegen",