hey-api / openapi-ts

✨ Turn your OpenAPI specification into a beautiful TypeScript client

Home Page:https://heyapi.vercel.app

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Shift comment position on enums

mrlubos opened this issue · comments

export const MyEnum =
  /**
   * comment
   */
  {
    FOO: 'foo',
    BAR: 'bar',
  } as const;

should be

/**
 * comment
 */
export const MyEnum = {
  FOO: 'foo',
  BAR: 'bar',
} as const;