4 ms·
JSDoc is also helpful in dealing with multiple argument option types for a function or constructor, which won't show in TS alone.
by tracker1 2y ago
JSDoc is also helpful in dealing with multiple argument option types for a function or constructor, which won't show in TS alone.
- sroussey 2y agoYou can do it in TS. https://www.typescriptlang.org/docs/handbook/2/functions.html#function-overloads https://www.typescriptlang.org/docs/handbook/2/functions.htm...