json-schema-to-typescript
Advanced tools
Comparing version 5.3.4 to 5.4.0
@@ -32,2 +32,6 @@ "use strict"; | ||
break; | ||
case 'ARRAY': | ||
return declareEnums(ast.params, options, processed); | ||
case 'TUPLE': | ||
return ast.params.reduce(function (prev, ast) { return prev + declareEnums(ast, options, processed); }, ''); | ||
case 'INTERFACE': | ||
@@ -34,0 +38,0 @@ type = getSuperTypesAndParams(ast).reduce(function (prev, ast) { |
{ | ||
"name": "json-schema-to-typescript", | ||
"version": "5.3.4", | ||
"version": "5.4.0", | ||
"description": "compile json schema to typescript typings", | ||
@@ -5,0 +5,0 @@ "main": "dist/src/index.js", |
@@ -39,2 +39,6 @@ import { whiteBright } from 'cli-color' | ||
break | ||
case 'ARRAY': | ||
return declareEnums(ast.params, options, processed) | ||
case 'TUPLE': | ||
return ast.params.reduce((prev, ast) => prev + declareEnums(ast, options, processed), '') | ||
case 'INTERFACE': | ||
@@ -41,0 +45,0 @@ type = getSuperTypesAndParams(ast).reduce((prev, ast) => |
Sorry, the diff of this file is too big to display
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
6197077
9763