Type autocompletions via JSDoc #255
Closed
binarious
announced in
JS Maintainers Discussions
Replies: 1 comment 2 replies
-
Your import of This code will work: const { Item } = require('openhab').items;
/**
*
* @param {Item} item
*/
function queryState (item) {
const host = item.getMetadata('host').value;
} |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I tried to get autocompletions via JSDoc type with
typescript-language-server
to work without success:In this example
item
doesn't get autocompletion, butitems.getItem('...').getMe...
does. I also tried@param {items.Item} item
or@param {typeof items.Item} item
without success.Any ideas?
Beta Was this translation helpful? Give feedback.
All reactions