You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/openapi-ts/configuration/output.md
+29-2Lines changed: 29 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -108,9 +108,9 @@ export default {
108
108
109
109
:::
110
110
111
-
## Import File Extension
111
+
## Module Extension
112
112
113
-
You can customize the extension used for imported TypeScript files.
113
+
You can customize the extension used for TypeScript modules.
114
114
115
115
::: code-group
116
116
@@ -258,6 +258,33 @@ export default {
258
258
259
259
You can also prevent your output from being linted by adding your output path to the linter's ignore file.
260
260
261
+
## Name Conflicts
262
+
263
+
As your project grows, the chances of name conflicts increase. We use a simple conflict resolver that appends numeric suffixes to duplicate identifiers. If you prefer a different strategy, you can provide your own `nameConflictResolver` function.
264
+
265
+
::: code-group
266
+
267
+
```js [config]
268
+
exportdefault {
269
+
input:'hey-api/backend', // sign up at app.heyapi.dev
We use the [TSConfig file](https://www.typescriptlang.org/tsconfig/) to generate output matching your project's settings. By default, we attempt to find a TSConfig file starting from the location of the `@hey-api/openapi-ts` configuration file and traversing up.
Copy file name to clipboardExpand all lines: docs/openapi-ts/migrating.md
+22Lines changed: 22 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -7,6 +7,28 @@ description: Migrating to @hey-api/openapi-ts.
7
7
8
8
While we try to avoid breaking changes, sometimes it's unavoidable in order to offer you the latest features. This page lists changes that require updates to your code. If you run into a problem with migration, please [open an issue](https://github.com/hey-api/openapi-ts/issues).
9
9
10
+
## v0.89.0
11
+
12
+
### Prefer named exports
13
+
14
+
This release changes the default for `index.ts` to prefer named exports. Named exports may lead to better IDE and bundler performance compared to asterisk (`*`) as your tooling doesn't have to inspect the underlying module to discover exports.
15
+
16
+
While this change is merely cosmetic, you can set `output.preferExportAll` to `true` if you prefer to use the asterisk.
17
+
18
+
```js
19
+
exportdefault {
20
+
input:'hey-api/backend', // sign up at app.heyapi.dev
21
+
output: {
22
+
path:'src/client',
23
+
preferExportAll:true, // [!code ++]
24
+
},
25
+
};
26
+
```
27
+
28
+
### Removed `symbol:setValue:*` events
29
+
30
+
These events have been removed in favor of `node:set:*` events.
0 commit comments