type-crafter 0.11.0 → 0.11.2

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
@@ -20550,7 +20550,7 @@ async function runner(language, inputFilePath, outputDirectory, _typesWriterMode
20550
20550
  }
20551
20551
  }
20552
20552
  greeting();
20553
- const program = new Command().version('0.11.0');
20553
+ const program = new Command().version('0.11.2');
20554
20554
  program
20555
20555
  .command('generate')
20556
20556
  .description('Generate types for your language from a type spec file')
@@ -35,7 +35,7 @@ export type {{typeName}} = {{#if (not (isEmptyObject properties))}}{
35
35
  Record<{{jsonKey additionalProperties.keyType}}, {{additionalProperties.valueType}}>;
36
36
  {{/if}}
37
37
 
38
- {{#if (not customAttributes.skipDecoderGeneration)}}
38
+ {{#unless customAttributes.skipDecoderGeneration}}
39
39
  export function decode{{typeName}}(rawInput: unknown): {{typeName}} | null {
40
40
  if (isJSON(rawInput)) {
41
41
  {{#each properties}}
@@ -72,7 +72,7 @@ export function decode{{typeName}}(rawInput: unknown): {{typeName}} | null {
72
72
  }
73
73
  return null;
74
74
  }
75
- {{/if}}
75
+ {{/unless}}
76
76
 
77
77
  {{#if customAttributes.generateOptionalDecoder}}
78
78
  export function _decode{{typeName}}(rawInput: unknown): {{typeName}} | undefined {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "type-crafter",
3
- "version": "0.11.0",
3
+ "version": "0.11.2",
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",