-
-
Save EvanLovely/67d2b5dde58779bb616bc303d928265f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @type {{a: boolean, b: boolean, c: number}} | |
*/ | |
var x = {a: true}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* @typedef {Object} SpecialType - creates a new type named 'SpecialType' | |
* @property {string} prop1 - a string property of SpecialType | |
* @property {number} prop2 - a number property of SpecialType | |
* @property {number=} prop3 - an optional number property of SpecialType | |
* @prop {number} [prop4] - an optional number property of SpecialType | |
* @prop {number} [prop5=42] - an optional number property of SpecialType with default | |
*/ | |
/** @type {SpecialType} */ | |
const specialTypeObject; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment