You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Double and Int are both converted directly to number. This is confusing on the TypeScript side.
@Serializable
data classPosition(
valx:Double,
valy:Double,
vallevel:Int,
)
// generatedexportinterfacePosition{x: number;y: number;level: number;// level looks the same as x and y, but if I produce a JSON message with 1.5, KXS will error}
Unsigned numbers (because they are value classes) are converted to type aliases, e.g.
In TypeScript this isn't safe (UInt can accept any numeric value, despite its name) - but it gives a good indication, and can be enhanced with brand typing (#7).
Can the other numeric primitives be exported as type aliases?
* allow for overriding of elements (partial support for #23 and #22), and update knit to allow for TS Compile to be disabled
* make TsMapTypeConverter more clear, split inline/non-inline
* code tidy
* fix bug where overrides weren't consistently found and applied if the target was nullable
Double and Int are both converted directly to
number
. This is confusing on the TypeScript side.Unsigned numbers (because they are value classes) are converted to type aliases, e.g.
In TypeScript this isn't safe (
UInt
can accept any numeric value, despite its name) - but it gives a good indication, and can be enhanced with brand typing (#7).Can the other numeric primitives be exported as type aliases?
The text was updated successfully, but these errors were encountered: