quicktype-core 23.2.5 → 23.2.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -1,19 +1,19 @@
|
|
|
1
1
|
import type { EnumOption, Option } from "./index";
|
|
2
|
+
import type { OptionDefinition as CommandLineArgsOptionDefinition } from "command-line-args";
|
|
2
3
|
/**
|
|
3
4
|
* Primary options show up in the web UI in the "Language" settings tab,
|
|
4
5
|
* Secondary options in "Other".
|
|
5
6
|
* CLI is only for cli
|
|
6
7
|
*/
|
|
7
8
|
export type OptionKind = "primary" | "secondary" | "cli";
|
|
8
|
-
export
|
|
9
|
+
export type OptionType = "string" | "boolean" | "enum";
|
|
10
|
+
export interface OptionDefinition<Name extends string = string, T = unknown> extends CommandLineArgsOptionDefinition {
|
|
9
11
|
/** Option Name */
|
|
10
12
|
name: Name;
|
|
11
|
-
/** Option Alias for CLI */
|
|
12
|
-
alias?: string;
|
|
13
13
|
/** Option Description */
|
|
14
14
|
description: string;
|
|
15
15
|
/** Category of Option */
|
|
16
|
-
optionType:
|
|
16
|
+
optionType: OptionType;
|
|
17
17
|
/** Default Value for Option */
|
|
18
18
|
defaultValue?: T;
|
|
19
19
|
/** Enum only, map of possible keys and values */
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "quicktype-core",
|
|
3
|
-
"version": "23.2.
|
|
3
|
+
"version": "23.2.6",
|
|
4
4
|
"description": "The quicktype engine as a library",
|
|
5
5
|
"license": "Apache-2.0",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -36,6 +36,7 @@
|
|
|
36
36
|
"@types/unicode-properties": "^1.3.0",
|
|
37
37
|
"@types/urijs": "^1.19.25",
|
|
38
38
|
"@types/wordwrap": "^1.0.3",
|
|
39
|
+
"command-line-args": "^5.2.1",
|
|
39
40
|
"typescript": "~5.8.3"
|
|
40
41
|
},
|
|
41
42
|
"overrides": {
|