What is the correct JSDOC syntax for referencing imported es6 classes?

I am trying to find the correct syntax for specifying outer classes as params / returns in JSDOC.

so for example i have:

import redux from 'redux'; /** * @param {object} state * @return {{module:redux.Store}} */ export function initState(state=initialState) { store = redux.createStore(theReducer, Immutable.fromJS(state)); return store; } 

the problem is that if I use this in webstorm, the “Go To Declaration” on the Store sends me to a completely unnecessary place.

which means that either my syntax is incorrect (what is correct?), or is this a bug in Webstorm

+6
source share
1 answer

the syntax looks fine ... WEB-19261 is recorded , please follow it for updates

+1
source

All Articles