Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- * Created by xxx on 1/13/17.
- */
- /**
- * @class Bear
- * @type {Object}
- * @property {string} biomass
- * @return {Bear}
- */
- function bear(biomass) {
- /**
- * Feeds the bear
- * @param {Object} food
- * @param {string} food.fish
- * @return {boolean} Is the bear still hungry?
- */
- this.prototype.eat = function (food) {}
- }
- /**
- * @class Human
- * @type {Object}
- * @property {string} biomass
- * @return {Human}
- */
- function human(biomass) {
- /**
- * Feeds the human
- * @param {Object} food
- * @param {string} food.pasta
- * @return {boolean} Is the human still hungry?
- */
- this.prototype.eat = function (food) {}
- }
- var bear = bear('biomass');
- bear.eat({
- //<Invoking auto complete here gives both fish and pasta as an option but should only give fish as an option..
- })
Advertisement
Add Comment
Please, Sign In to add comment