Skip to content

Instantly share code, notes, and snippets.

Avatar
🍔
🍟🥤 | 🍺🍿 | { ... }

Sahin D. seahindeniz

🍔
🍟🥤 | 🍺🍿 | { ... }
  • Istanbul, Turkey
View GitHub Profile
@seahindeniz
seahindeniz / jsdoc-class-method-overload.js
Last active Jan 31, 2020
JSDoc for class method, overloading, adding multiple signatures.
View jsdoc-class-method-overload.js
/**
* @typedef {(x: number) => string} NumberToStringType
*
* @typedef {(x: string) => number} StringToNumberType
*
* @typedef {NumberToStringType & StringToNumberType} FlipType
*/
class SampleClass {
constructor() {
You can’t perform that action at this time.