type-crafter 0.2.0 → 0.2.1
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.
- package/dist/index.js +2 -2
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -19568,7 +19568,7 @@ function generateType(typeName, typeInfo, groupedTypes = false) {
|
|
|
19568
19568
|
languageDataType = getLanguageDataType(propertyType, propertyFormat, propertyItems);
|
|
19569
19569
|
result.primitives.add(propertyItems !== null ? 'Array' : languageDataType);
|
|
19570
19570
|
if (propertyItems !== null) {
|
|
19571
|
-
const itemsType = getReferenceName(propertyItems.$ref ?? '');
|
|
19571
|
+
const itemsType = propertyItems.type ?? getReferenceName(propertyItems.$ref ?? '');
|
|
19572
19572
|
result.references.add(itemsType);
|
|
19573
19573
|
composerType = itemsType;
|
|
19574
19574
|
}
|
|
@@ -19879,7 +19879,7 @@ async function runner(language, inputFilePath, outputDirectory, _typesWriterMode
|
|
|
19879
19879
|
}
|
|
19880
19880
|
}
|
|
19881
19881
|
greeting();
|
|
19882
|
-
const program = new Command().version('0.2.
|
|
19882
|
+
const program = new Command().version('0.2.1');
|
|
19883
19883
|
program
|
|
19884
19884
|
.command('generate')
|
|
19885
19885
|
.description('Generate types for your language from a type spec file')
|