Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Create a something
- * @returns {object} Something
- */
- function createSomething() {
- return {
- /**
- * Foo!
- * @returns {string}
- */
- foo() { return 'foo';},
- /**
- * Bar!
- * @returns {string}
- */
- bar() { return 'bar';}
- };
- }
- /**
- * @typedef {object} Something
- */
- /**
- * Create a something
- * @returns {Something} Something
- */
- function createSomething() {
- return {
- /**
- * Foo!
- * @returns {string}
- */
- foo() { return 'foo';},
- /**
- * Bar!
- * @returns {string}
- */
- bar() { return 'bar';}
- };
- }
- /**
- * @typedef {object} Something
- * @property {function} foo
- * @property {function} bar
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement