Skip to content

Enable verbatimModuleSyntax for tspd and http-server-js - #11490

Open
timotheeguerin wants to merge 2 commits into
microsoft:mainfrom
timotheeguerin:type-import-pass-5
Open

Enable verbatimModuleSyntax for tspd and http-server-js#11490
timotheeguerin wants to merge 2 commits into
microsoft:mainfrom
timotheeguerin:type-import-pass-5

Conversation

@timotheeguerin

Copy link
Copy Markdown
Member

Part of the incremental rollout of TypeScript's verbatimModuleSyntax across the workspace (batch 5).

Enables verbatimModuleSyntax: true for:

  • @typespec/tspd
  • @typespec/http-server-js

Changes

  • Added "verbatimModuleSyntax": true to each package's tsconfig.json.
  • Converted type-only imports/exports to import type / export type (via oxlint type-aware autofix).
  • Fixed http-server-js/build-helpers.ts to emit import type { Module } in the generated generated-defs/helpers/*.ts files, and regenerated them.

Validation

  • tsc — 0 verbatim (TS1484/TS1205/TS1485) errors for both packages.
  • Builds: tspd alloy build, http-server-js tsc -p tsconfig.json.
  • oxlint --type-aware --deny-warnings clean.
  • Tests: tspd 86 passed, http-server-js 80 passed.

Standalone runtime emitters (http-client-csharp, http-client-java, http-client-python) remain out of scope. The base tsconfig.base.json is intentionally untouched.

@microsoft-github-policy-service microsoft-github-policy-service Bot added the tspd Issues for the tspd tool label Jul 30, 2026
@pkg-pr-new

pkg-pr-new Bot commented Jul 30, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/@typespec/http-server-js@11490
npm i https://pkg.pr.new/@typespec/tspd@11490

commit: b76eb09

@github-actions

Copy link
Copy Markdown
Contributor

All changed packages have been documented.

  • @typespec/http-server-js
  • @typespec/tspd
Show changes

@typespec/tspd - internal ✏️

Enable verbatimModuleSyntax and convert type-only imports/exports to import type / export type

@typespec/http-server-js - internal ✏️

Enable verbatimModuleSyntax and convert type-only imports/exports to import type / export type

@azure-sdk-automation

azure-sdk-automation Bot commented Jul 30, 2026

Copy link
Copy Markdown

You can try these changes here

🛝 Playground 🌐 Website 🛝 VSCode Extension

@timotheeguerin
timotheeguerin marked this pull request as ready for review July 30, 2026 19:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

tspd Issues for the tspd tool

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant