Closed kaleidawave closed 4 years ago
Currently chef interprets literal types as being actual types.
> const bDeclaration = VariableDeclaration.fromString(`const b: "abc" = "abc";`); > bDeclartion > TypeSignature { name: "abc" }
Which causes them to be rendered without quotations:
> bDeclaration.render(getSettings({scriptLanguage: ScriptLanguages.Typescript})) > const b: abc = "abc";
Literal types (strings, numbers and booleans) should be recognised in TypeSignature as a Value and parsed accordingly
TypeSignature
Value
Currently chef interprets literal types as being actual types.
Which causes them to be rendered without quotations:
Literal types (strings, numbers and booleans) should be recognised in
TypeSignature
as aValue
and parsed accordingly