JsTs to JsdocTs to JsdocGenericshttps://medium.com/@antonkrinitsyn/jsdoc-generic-types-typescript-db213cf486401 type List<T> = []T 1 2 3 4 /** * @template T * @typedef {[]T} List */ reducer1 const reducer = (state: number[], action: number) => [...state, action] is equivalent to1 2 3 4 const reducer = ( /** @type {number[]} */ state, /** @type {number} */ action ) => [...state, action]