type-crafter 0.13.4 → 0.14.0
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 +33 -3
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -22354,8 +22354,38 @@ async function config(inputFilePath, outputDirectory, typesWriterMode, groupedTy
|
|
|
22354
22354
|
exporterModuleName: 'mod',
|
|
22355
22355
|
typeMapper: {
|
|
22356
22356
|
string: { default: 'String', date: 'time::Date', 'date-time': 'time::OffsetDateTime' },
|
|
22357
|
-
number: {
|
|
22358
|
-
|
|
22357
|
+
number: {
|
|
22358
|
+
default: 'f64',
|
|
22359
|
+
float: 'f32',
|
|
22360
|
+
double: 'f64',
|
|
22361
|
+
i8: 'i8',
|
|
22362
|
+
i16: 'i16',
|
|
22363
|
+
int32: 'i32',
|
|
22364
|
+
int64: 'i64',
|
|
22365
|
+
i128: 'i128',
|
|
22366
|
+
isize: 'isize',
|
|
22367
|
+
u8: 'u8',
|
|
22368
|
+
u16: 'u16',
|
|
22369
|
+
u32: 'u32',
|
|
22370
|
+
u64: 'u64',
|
|
22371
|
+
u128: 'u128',
|
|
22372
|
+
usize: 'usize'
|
|
22373
|
+
},
|
|
22374
|
+
integer: {
|
|
22375
|
+
default: 'i32',
|
|
22376
|
+
int32: 'i32',
|
|
22377
|
+
int64: 'i64',
|
|
22378
|
+
i8: 'i8',
|
|
22379
|
+
i16: 'i16',
|
|
22380
|
+
i128: 'i128',
|
|
22381
|
+
isize: 'isize',
|
|
22382
|
+
u8: 'u8',
|
|
22383
|
+
u16: 'u16',
|
|
22384
|
+
u32: 'u32',
|
|
22385
|
+
u64: 'u64',
|
|
22386
|
+
u128: 'u128',
|
|
22387
|
+
usize: 'usize'
|
|
22388
|
+
},
|
|
22359
22389
|
boolean: 'bool',
|
|
22360
22390
|
array: 'Vec<~ItemType~>',
|
|
22361
22391
|
object: 'type',
|
|
@@ -22496,7 +22526,7 @@ async function runner(language, inputFilePath, outputDirectory, _typesWriterMode
|
|
|
22496
22526
|
}
|
|
22497
22527
|
}
|
|
22498
22528
|
greeting();
|
|
22499
|
-
const program = new Command().version('0.
|
|
22529
|
+
const program = new Command().version('0.14.0');
|
|
22500
22530
|
program
|
|
22501
22531
|
.command('generate')
|
|
22502
22532
|
.description('Generate types for your language from a type spec file')
|