We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 23ef7f6 commit 8f81611Copy full SHA for 8f81611
README.md
@@ -96,7 +96,7 @@ npm i --save-dev openapi-typescript
96
97
```js
98
const { readFileSync } = require("fs");
99
-const swaggerToTS = require("openapi-typescript");
+const swaggerToTS = require("openapi-typescript").default;
100
101
const input = JSON.parse(readFileSync("spec.json", "utf8")); // Input can be any JS object (OpenAPI format)
102
const output = swaggerToTS(input); // Outputs TypeScript defs as a string (to be parsed, or written to a file)
0 commit comments