vovk-cli 0.0.1-draft.215 → 0.0.1-draft.217
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.
|
@@ -107,7 +107,9 @@ export function convertJSONSchemaToTypeScriptDef(schema) {
|
|
|
107
107
|
const defaultValue = propSchema.default !== undefined ? ` // default: ${JSON.stringify(propSchema.default)}` : '';
|
|
108
108
|
const jsDoc = getJSDoc(propSchema, indentation);
|
|
109
109
|
const propType = schemaToType(propSchema, indentation + ' ');
|
|
110
|
-
return `${jsDoc}
|
|
110
|
+
return [`${jsDoc}`, `${indentation}${propName}${isOptional ? '?' : ''}: ${propType};${defaultValue}`]
|
|
111
|
+
.filter(Boolean)
|
|
112
|
+
.join('\n');
|
|
111
113
|
})
|
|
112
114
|
.join('\n');
|
|
113
115
|
// Handle additional properties
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "vovk-cli",
|
|
3
|
-
"version": "0.0.1-draft.
|
|
3
|
+
"version": "0.0.1-draft.217",
|
|
4
4
|
"bin": {
|
|
5
5
|
"vovk": "./dist/index.mjs"
|
|
6
6
|
},
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
},
|
|
36
36
|
"homepage": "https://vovk.dev",
|
|
37
37
|
"peerDependencies": {
|
|
38
|
-
"vovk": "^3.0.0-draft.
|
|
38
|
+
"vovk": "^3.0.0-draft.205"
|
|
39
39
|
},
|
|
40
40
|
"optionalDependencies": {
|
|
41
41
|
"vovk-python-client": "^0.0.1-draft.39"
|