type-crafter 0.9.1 → 0.9.3

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 CHANGED
@@ -20513,7 +20513,7 @@ async function runner(language, inputFilePath, outputDirectory, _typesWriterMode
20513
20513
  }
20514
20514
  }
20515
20515
  greeting();
20516
- const program = new Command().version('0.9.1');
20516
+ const program = new Command().version('0.9.2');
20517
20517
  program
20518
20518
  .command('generate')
20519
20519
  .description('Generate types for your language from a type spec file')
@@ -22,8 +22,7 @@ export function decode{{typeName}}(rawInput: unknown): {{typeName}} | null {
22
22
  return null;
23
23
  }
24
24
 
25
-
26
- export function _decode{{typeName}}(rawInput: unknown): {{typeName}} | null {
25
+ export function _decode{{typeName}}(rawInput: unknown): {{typeName}} | undefined {
27
26
  switch (rawInput) {
28
27
  {{#each values}}
29
28
  case {{#if (eq ../type 'string') }}'{{/if}}{{this}}{{#if (eq ../type 'string')}}'{{/if}}:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "type-crafter",
3
- "version": "0.9.1",
3
+ "version": "0.9.3",
4
4
  "description": "A tool to generate types from a yaml schema for any language",
5
5
  "main": "./dist/index.js",
6
6
  "type": "module",