There is a type error that occurs in the encode method for structs and unions with an empty map initializer. The temporary object sees the default map as Map<unknown, unknown>.
before:
after:
I think this may only be an issue with specific flags or typescript versions, but adding the explicit type avoids any issues.
There is a type error that occurs in the encode method for structs and unions with an empty map initializer. The temporary object sees the default map as
Map<unknown, unknown>
.before:
after:
I think this may only be an issue with specific flags or typescript versions, but adding the explicit type avoids any issues.