Skip to content

Drop the typescript7 alias once openapi-ts supports the TypeScript 7 API #1466

Description

@FelixTJDietrich

We type-check on TypeScript 7 through a typescript7 npm alias, while typescript itself stays pinned to 6.0.3. That split exists for exactly one reason.

@hey-api/openapi-ts calls the TypeScript compiler API, which 7.0 does not ship:

@hey-api/openapi-ts/dist/init-Bi6_Uyy_.mjs:4153
	newLine: ts.NewLineKind.LineFeed,
TypeError: Cannot read properties of undefined (reading 'LineFeed')

Everything else we assumed was blocking turned out not to be. Storybook and react-docgen-typescript build fine against 7.0.2 and produce identical output (515 docgen entries either way).

TypeScript 7.1 is expected to ship a new programmatic API. Once @hey-api/openapi-ts supports it, drop the alias and pin typescript to 7.

Done when

  • webapp/package.json and the root package.json have a single typescript dependency on 7.x
  • typecheck, build and typecheck:scripts call plain tsc again
  • the //typecheck note explaining the alias is removed
  • pnpm run generate:api still produces an unchanged webapp/src/api

Metadata

Metadata

Assignees

No one assigned

    Labels

    dependenciesPackage updates, version bumps, lock file changespriority:mediumPlan for soon - Moderate impactsize:XSThis PR changes 0-9 lines, ignoring generated files.webappReact app: UI components, routes, state management

    Type

    No type

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions