Skip to content

Instantly share code, notes, and snippets.

View seahindeniz's full-sized avatar
🍔
🍟🥤 | 🍺🍿 | { ... }

Sahin Deniz seahindeniz

🍔
🍟🥤 | 🍺🍿 | { ... }
View GitHub Profile
@seahindeniz
seahindeniz / jsdoc-class-method-overload.js
Last active September 23, 2022 18:01
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() {