You can achieve that, by doing this: /** * @param {(1|2)} type */ function useTypesEnum(type) { } So it seems this is the right way to document everything ...
確定! 回上一頁