Closed jcjp closed 2 years ago
Hi @jcjp. This particular issue sounds best addressed in @kafkajs/confluent-schema-registry
- avsc
doesn't have control over types declared in dependent libraries. (It is true that the typings in this repository are WIP though, please feel free to reopen for avsc
-specific improvements.)
Here is what I have in my code:
Using the library
@kafkajs/confluent-schema-registry
to get the schema from the registry then passing it to theforSchema
returns a type error of:I can mitigate this type error by setting the
schema
asany
like thits: