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
declare module 'k6/x/kafka'{/** * @packageDocumentation * xk6-kafka is a k6 extension to load test Apache Kafka *//** * @module k6/x/kafka * @description * The xk6-kafka project is a k6 extension that enables k6 users to load test Apache Kafka using a producer and possibly a consumer for debugging. * This documentation refers to the development version of the xk6-kafka project, which means the latest changes on `main` branch and might not be released yet, as explained in [the release process](https://github.com/mostafa/xk6-kafka#the-release-process). * @see {@link https://github.com/mostafa/xk6-kafka} *//** Compression codecs for compressing messages when producing to a topic or reading from it. */exportenumCOMPRESSION_CODECS{
.....
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.
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?
The text was updated successfully, but these errors were encountered: