-
-
Notifications
You must be signed in to change notification settings - Fork 9
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
Strongly typed optsWithGlobals #78
Merged
Merged
+373
−59
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
shadowspawn
force-pushed
the
feature/strongly-typed-globals
branch
from
October 27, 2024 04:40
40f902d
to
c08000c
Compare
shadowspawn
force-pushed
the
feature/strongly-typed-globals
branch
from
October 27, 2024 05:23
dbfe3f2
to
acbc92c
Compare
shadowspawn
changed the title
Feature/strongly typed globals
Strongly typed optsWithGlobals
Oct 27, 2024
abetomo
approved these changes
Nov 1, 2024
shadowspawn
added
the
pending release
On a branch for eventual release, but not yet merged to main.
label
Nov 1, 2024
@shadowspawn @abetomo do you know when this will be released? |
We don't have a date planned, but I expect by mid-January 2026. Would a pre-release build be useful to you? I have just one more issue I want to look at for a major version of Commander: |
Yes please. Would be useful to test it out
…On Fri, 29 Nov 2024, 18:33 John Gee, ***@***.***> wrote:
We don't have a date planned, but I expect by mid-January 2026.
Would a pre-release build be useful to you?
I have just one more issue I want to look at for a major version of
Commander:
- tj/commander.js#2263 <tj/commander.js#2263>
—
Reply to this email directly, view it on GitHub
<#78 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AAMBRIXBLSTMPFHEN7ADBSD2DCXPPAVCNFSM6AAAAABQVHVRJGVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDKMBYGI4TCNJRHA>
.
You are receiving this because you commented.Message ID:
***@***.***>
|
A prerelease is available for v13. The release is tagged as next and can be installed with:
|
Released in v13.0.0 |
shadowspawn
removed
the
pending release
On a branch for eventual release, but not yet merged to main.
label
Dec 31, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Pull Request
Problem
.optsWithGlobals()
and.getOptionValueSourceWithGlobals()
are weakly typed and not using globals.Solution
Add
Command<>
generic forGlobalOpts
..optsWithGlobals()
is strongly typed.getOptionValueSourceWithGlobals()
is weakly typed. Get autocompletion for known options, but can enter anything, like with the other...Source...
routines.On the way I upgraded eslint because I noticed
@typescript-eslint/ban-types
was changing to@typescript-eslint/no-empty-object-type
. And simplifiedeslint.config.js
to avoid bogus TypeScript errors from.js
files. (Apologies for the extra changes. I did make them separate commits.)ChangeLog
.optsWithGlobals()
to include inferred globals.getOptionValueSourceWithGlobals()
to include inferred globals