···130130131131We recommend exporting enums as plain JavaScript objects. [TypeScript enums](https://www.typescriptlang.org/docs/handbook/enums.html) are not a type-level extension of JavaScript and pose [typing challenges](https://dev.to/ivanzm123/dont-use-enums-in-typescript-they-are-very-dangerous-57bh).
132132133133+## Comments
134134+135135+By default, `@hey-api/typescript` will include comments in the generated code based on descriptions from your OpenAPI specification. If you want to reduce the size of your generated files or prefer cleaner output, you can disable comments.
136136+137137+::: code-group
138138+139139+```js [enabled]
140140+export default {
141141+ input: 'hey-api/backend', // sign up at app.heyapi.dev
142142+ output: 'src/client',
143143+ plugins: [
144144+ // ...other plugins
145145+ {
146146+ comments: true, // default // [!code ++]
147147+ name: '@hey-api/typescript',
148148+ },
149149+ ],
150150+};
151151+```
152152+153153+```js [disabled]
154154+export default {
155155+ input: 'hey-api/backend', // sign up at app.heyapi.dev
156156+ output: 'src/client',
157157+ plugins: [
158158+ // ...other plugins
159159+ {
160160+ comments: false, // [!code ++]
161161+ name: '@hey-api/typescript',
162162+ },
163163+ ],
164164+};
165165+```
166166+167167+:::
168168+133169## API
134170135171You can view the complete list of options in the [UserConfig](https://github.com/hey-api/openapi-ts/blob/main/packages/openapi-ts/src/plugins/@hey-api/typescript/types.ts) interface.