Open kevinresol opened 4 years ago
Basically this piece of code: https://github.com/haxetink/tink_json/blob/09c708c6cebfa47fd9165d9b6a380e077ff3f320/src/tink/json/macros/GenWriter.hx#L368-L379
For example for tink.Annex we have .get(TheType), but .get(TheType<Int>) doesn't work, but we can typedef TheIntType = TheType<Int>; then .get(TheIntType). This will be useful if TheType is generically built and produces distinct types at runtime.
tink.Annex
.get(TheType)
.get(TheType<Int>)
typedef TheIntType = TheType<Int>;
.get(TheIntType)
TheType
Basically this piece of code: https://github.com/haxetink/tink_json/blob/09c708c6cebfa47fd9165d9b6a380e077ff3f320/src/tink/json/macros/GenWriter.hx#L368-L379
For example for
tink.Annex
we have.get(TheType)
, but.get(TheType<Int>)
doesn't work, but we cantypedef TheIntType = TheType<Int>;
then.get(TheIntType)
. This will be useful ifTheType
is generically built and produces distinct types at runtime.