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: Expose the prefer-const-values Typescript language setting via CLI #2426

Merged
merged 1 commit into from
Nov 13, 2023

Conversation

kriswest
Copy link
Contributor

@kriswest kriswest commented Oct 17, 2023

resolves #2345
A previous PR (#2314) introduced the ability to generate const values in Typescript but didn't expose that option correctly for use through the CLI. This one-line PR exposes the option (which works a treat!)

@DanielBretzigheimer

@kriswest kriswest changed the title Expose the prefer-const-values Typescript language setting via CLI fix: Expose the prefer-const-values Typescript language setting via CLI Oct 17, 2023
@kriswest
Copy link
Contributor Author

@dvdsgl @schani (or any other maintainer), is there any chance of getting this one-line correction merged?

The Linux Foundation/FINOS' FDC3 Standard project uses quicktype to generate Typescript interfaces as part of its build pipeline and we're stuck with a manual process without this option (as const values resolved a problem for use in the generated TypeScript types - we found that single value string enums, the alternative to string consts in standardized messages, do not match the string values where actual typescript consts do). As we make use of quicktype for this, we're trying to contribute back on those things that we use.

@schani schani merged commit 317deef into glideapps:master Nov 13, 2023
22 checks passed
@kriswest kriswest deleted the expose-prefer-const-values branch November 13, 2023 15:07
kriswest added a commit to finos/FDC3 that referenced this pull request Nov 13, 2023
@kriswest
Copy link
Contributor Author

Many thanks @schani, our automation will be back up and running again shortly!

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.

Option parsing failed: Unknown option: --prefer-const-values.
3 participants