@kubb/parser
Advanced tools
Comparing version 0.0.0-canary-20240312184340 to 0.0.0-canary-20240318214922
@@ -357,6 +357,9 @@ import { | ||
} | ||
return factory.createLiteralTypeNode( | ||
factory.createStringLiteral(value?.toString()) | ||
); | ||
}) | ||
if (value) { | ||
return factory.createLiteralTypeNode( | ||
factory.createStringLiteral(value.toString()) | ||
); | ||
} | ||
return void 0; | ||
}).filter(Boolean) | ||
) | ||
@@ -390,7 +393,10 @@ ) | ||
} | ||
return factory.createEnumMember( | ||
factory.createStringLiteral(`${key}`), | ||
initializer | ||
); | ||
}) | ||
if (key) { | ||
return factory.createEnumMember( | ||
factory.createStringLiteral(`${key}`), | ||
initializer | ||
); | ||
} | ||
return void 0; | ||
}).filter(Boolean) | ||
) | ||
@@ -421,7 +427,10 @@ ]; | ||
} | ||
return factory.createPropertyAssignment( | ||
factory.createStringLiteral(`${key}`), | ||
initializer | ||
); | ||
}), | ||
if (key) { | ||
return factory.createPropertyAssignment( | ||
factory.createStringLiteral(`${key}`), | ||
initializer | ||
); | ||
} | ||
return void 0; | ||
}).filter(Boolean), | ||
true | ||
@@ -428,0 +437,0 @@ ), |
{ | ||
"name": "@kubb/parser", | ||
"version": "0.0.0-canary-20240312184340", | ||
"version": "0.0.0-canary-20240318214922", | ||
"description": "Generator parser", | ||
@@ -54,5 +54,5 @@ "keywords": [ | ||
"devDependencies": { | ||
"@types/lodash.tonumber": "^4.0.9", | ||
"eslint": "^8.57.0", | ||
"lodash.tonumber": "^4.0.3", | ||
"@types/lodash.tonumber": "^4.0.3", | ||
"tsup": "^8.0.2", | ||
@@ -59,0 +59,0 @@ "@kubb/eslint-config": "1.1.8", |
@@ -444,7 +444,10 @@ /* eslint-disable @typescript-eslint/unbound-method */ | ||
} | ||
if (value) { | ||
return factory.createLiteralTypeNode( | ||
factory.createStringLiteral(value.toString()), | ||
) | ||
} | ||
return factory.createLiteralTypeNode( | ||
factory.createStringLiteral(value?.toString()), | ||
) | ||
}), | ||
return undefined | ||
}).filter(Boolean), | ||
), | ||
@@ -484,7 +487,11 @@ ), | ||
return factory.createEnumMember( | ||
factory.createStringLiteral(`${key}`), | ||
initializer, | ||
) | ||
}), | ||
if (key) { | ||
return factory.createEnumMember( | ||
factory.createStringLiteral(`${key}`), | ||
initializer, | ||
) | ||
} | ||
return undefined | ||
}).filter(Boolean), | ||
), | ||
@@ -522,7 +529,11 @@ ] | ||
return factory.createPropertyAssignment( | ||
factory.createStringLiteral(`${key}`), | ||
initializer, | ||
) | ||
}), | ||
if (key) { | ||
return factory.createPropertyAssignment( | ||
factory.createStringLiteral(`${key}`), | ||
initializer, | ||
) | ||
} | ||
return undefined | ||
}).filter(Boolean), | ||
true, | ||
@@ -529,0 +540,0 @@ ), |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
153209
2076