Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(formats): handle DTCG-format tokens in typescript/es6-declarations #1406

Merged

Conversation

tkgroot
Copy link
Contributor

@tkgroot tkgroot commented Dec 9, 2024

Issue #, if available:

Description of changes:

the current "typescript/es6-declarations" formatter does not handle DTCG formatted tokens, namely the comment or $description attribute of a token respectively.

  • add functionality to handle comment and $description
  • update tests
    • add additional tests for outputStringLiterals = false
  • update snapshots

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@tkgroot tkgroot requested a review from a team as a code owner December 9, 2024 15:46
Copy link

This pull request is automatically being deployed by Amplify Hosting (learn more).

Access this pull request here: https://pr-1406.d16eby4ekpss5y.amplifyapp.com

@jorenbroekema
Copy link
Collaborator

Also looks good to me, same comment as the other PR about adding a changeset :)

dbanksdesign
dbanksdesign previously approved these changes Dec 9, 2024
- add functionalty to handle comment and $description
- update tests
- update snapshots

Signed-off-by: Tobias Kuppens Groot <[email protected]>
@tkgroot tkgroot force-pushed the fix/dtcg-formats-typescript-es6-declarations branch from fd8985a to 2966cfd Compare December 9, 2024 18:42
@tkgroot
Copy link
Contributor Author

tkgroot commented Dec 9, 2024

added changeset and rebased onto latest of main, to resolve merge-conflicts

@jorenbroekema jorenbroekema merged commit 08b5f36 into amzn:main Dec 10, 2024
6 checks passed
@tkgroot tkgroot deleted the fix/dtcg-formats-typescript-es6-declarations branch December 10, 2024 22:47
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