I want to write nC = nA + nB
(see below) but JSDoc thinks that is an error. Can I make JSDoc change its mind?
/** @typedef {number&{_tag: 'numberOfEggs'}} numberOfEggs */
/** @param {number} value */
const numberOfEggs = (value) => /** @type numberOfEggs */(value);
/** @type {numberOfEggs} */
let nA = numberOfEggs(1);
/** @type {numberOfEggs} */
let nB = numberOfEggs(1);
/** @type {numberOfEggs} */
let nC = nA + nB;
// For nC I get this JSDoc error:
// Type 'number' is not assignable to type 'numberOfEggs'. ts(2322)