JSDoc with and Immutable.js datastructures in annotations
问题 I am returning Immutable.js List data structure from function. PHPStorm is automatically attaching following @returns {*|List<T>|List<any>} . Eslint is giving me warning Unresolved variable of type 'T'. Where can I find documentation to annotations for Immutable.js? How can I describe in @returns annotation shape of the List that would pass in Eslint? /** * @param n * @returns {*|List<T>|List<any>} */ const getList = (n) => { let list = Immutable.List() for (let i = 0; i < n; i++) { for (let