mostafa/xk6-kafka

How to use autocompletion in IDEs?

fl0wx opened this issue · 2 comments

fl0wx commented

hey i just wondered how i can make use of autocompletion like i can do it with base k6 via adding "@types/k6": "^0.42.0" to devDependencies. Is that possible with k6 kafka?
Thanks and regards,
fl0w

Hey @fl0wx,

AFAIK, you can copy the index.d.ts file into your project directory and reference it in your script to get auto-completion:

/// <reference path="index.d.ts" />

...
fl0wx commented

Hey @fl0wx,

AFAIK, you can copy the index.d.ts file into your project directory and reference it in your script to get auto-completion:

/// <reference path="index.d.ts" />

...

thanks that works :)