Skip to content

Conversation

@kuhe
Copy link
Contributor

@kuhe kuhe commented Nov 23, 2025

  • adds new method signatures to TypeScriptWriter: addTypeImport, addRelativeTypeImport, addTypeImportSubmodule corresponding to their regular addImport counterparts. This allows the code generation author to make use of the TypeScript feature type-only-imports
  • reorganizes how imports and type imports are emitted to the TypeScriptWriter::toString method, matching the simple-import-sort eslint plugin in use by this repository's and AWS SDK's TypeScript source code.
    • i.e., alphabetical ignoring case, separated sections for package and relative imports

See https://www.typescriptlang.org/docs/handbook/release-notes/typescript-3-8.html#type-only-imports-and-export

@kuhe kuhe requested a review from a team as a code owner November 23, 2025 21:32
@kuhe kuhe force-pushed the feat/type-import branch 2 times, most recently from 195bf23 to 29d929e Compare November 23, 2025 21:56
@kuhe kuhe merged commit 4313e2f into main Nov 25, 2025
13 checks passed
@kuhe kuhe deleted the feat/type-import branch November 25, 2025 02:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants