Open bloodgang94 opened 4 months ago
Hey @bloodgang94,
There is no such symbol named SCHEMA_TYPES
and these are the schema types you can import into your code.
https://github.com/mostafa/xk6-kafka/blob/1d8e9efcd937e8ab7a476e7546e5c0181e1d3014/module.go#L210-L215
As for the index.d.ts
file, I tried to keep it as close to the exported parameters as I can and it is still relevant, AFAIK. I used enums to be able to reference them in other types, but they are actually constants, so you'd better import the actual constant.
@mostafa , how did you think about fixing index.d.ts? I can help you with this by making a merge request. It would also be nice to publish it there https://github.com/DefinitelyTyped/DefinitelyTyped
@bloodgang94 Go for it.
Hello! My project is on typescript. I moved index.d.ts to my project.
When importing SCHEMA_TYPES I get the error
TypeError: Cannot read property 'SCHEMA_TYPE_AVRO' of undefined
Example
tsconfig
I found a similar problem
If you change it to constant then there is no error. Do I understand correctly that index.d.ts is not relevant?