Skip to content

Enable verbatimModuleSyntax in http-client-java emitter - #11516

Open
timotheeguerin wants to merge 1 commit into
microsoft:mainfrom
timotheeguerin:type-import-emitter-java
Open

Enable verbatimModuleSyntax in http-client-java emitter#11516
timotheeguerin wants to merge 1 commit into
microsoft:mainfrom
timotheeguerin:type-import-emitter-java

Conversation

@timotheeguerin

Copy link
Copy Markdown
Member

Extends the ongoing verbatimModuleSyntax rollout to the standalone Java client emitter (@typespec/http-client-java).

verbatimModuleSyntax makes TypeScript emit imports/exports exactly as written, keeping type-only imports out of the runtime module graph. This is the same flag already enabled across most workspace packages; this PR turns it on for the Java emitter's TypeScript layer.

What changed:

  • Add "verbatimModuleSyntax": true to emitter/tsconfig.json.
  • Convert type-only imports/exports to import type / export type (oxlint autofix, plus a export type fix for the options re-export in emitter/src/index.ts).

No runtime behavior change — a dev-only TypeScript configuration/import-style change.

Add verbatimModuleSyntax to the emitter tsconfig and convert type-only
imports/exports to import type / export type.
@microsoft-github-policy-service microsoft-github-policy-service Bot added the emitter:client:java Issue for the Java client emitter: @typespec/http-client-java label Jul 31, 2026
@github-actions

Copy link
Copy Markdown
Contributor

All changed packages have been documented.

  • @typespec/http-client-java
Show changes

@typespec/http-client-java - internal ✏️

Enable verbatimModuleSyntax in the emitter's TypeScript config and convert type-only imports/exports to import type/export type.

@azure-sdk-automation

azure-sdk-automation Bot commented Jul 31, 2026

Copy link
Copy Markdown

You can try these changes here

🛝 Playground 🌐 Website 🛝 VSCode Extension

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

emitter:client:java Issue for the Java client emitter: @typespec/http-client-java

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant