-
-
Notifications
You must be signed in to change notification settings - Fork 672
Move OptionDescription to utils/options so types agree #612
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
Changes from 4 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -13,6 +13,7 @@ under the licensing terms detailed in LICENSE: | |
* Joshua Tenner <[email protected]> | ||
* Nidin Vinayakan <[email protected]> | ||
* Aaron Turner <[email protected]> | ||
* Willem Wyndham <[email protected]> | ||
|
||
Portions of this software are derived from third-party works licensed under | ||
the following terms: | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,15 +1,18 @@ | ||
/** Command line option description. */ | ||
export interface OptionDescription { | ||
/** Textual description. */ | ||
description?: string | string[], | ||
/** Data type. One of (b)oolean [default], (i)nteger, (f)loat or (s)tring. Uppercase means multiple values. */ | ||
type?: "b" | "i" | "f" | "s" | "I" | "F" | "S", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. nice find! did that even work before? There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Nut sure it was ever used. Since it was just the type definition file and no one tried to use the type with a typescript project. |
||
/** Substituted options, if any. */ | ||
value?: { [key: string]: number | string }, | ||
/** Short alias, if any. */ | ||
alias?: string | ||
} | ||
|
||
/** Configuration object. */ | ||
interface Config { | ||
[key: string]: { | ||
/** Textual description. */ | ||
description?: string | string[], | ||
/** Data type. One of (b)oolean [default], (i)nteger, (f)loat or (s)tring. Uppercase means multiple values. */ | ||
type?: "b" | "i" | "f" | "s", "I", "F", "S", | ||
/** Substituted options, if any. */ | ||
value?: { [key: string]: number | string }, | ||
/** Short alias, if any. */ | ||
alias?: string | ||
}; | ||
[key: string]: OptionDescription; | ||
} | ||
|
||
/** Parsing result. */ | ||
|
Uh oh!
There was an error while loading. Please reload this page.