Enum as @param type in JSDoc March 4, 2023 by Tarik You can achieve that, by doing this: /** * @param {(1|2)} type */ function useTypesEnum(type) { }