Skip to content

Instantly share code, notes, and snippets.

@wmerfalen
Last active August 27, 2021 03:16
Show Gist options
  • Save wmerfalen/73b2ad08324d839e3fe23dac7139b88a to your computer and use it in GitHub Desktop.
Save wmerfalen/73b2ad08324d839e3fe23dac7139b88a to your computer and use it in GitHub Desktop.
/**
* @typedef {object} SpecialType - creates a new type named 'SpecialType'
* @property {function} save - a function to save
*/
SpecialType.save = function(){
//
}
/** @return {SpecialType} */
Factory.createSpecialType = function(){
return SpecialType;
}
/**
# once you install tsc, use this
tsc --allowJs --checkJs --noEmit --moduleResolution node --target ES6 file.js
*/
@coolaj86
Copy link

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment