Skip to content

Instantly share code, notes, and snippets.

@nkbt
Created December 11, 2013 07:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save nkbt/7906169 to your computer and use it in GitHub Desktop.
Save nkbt/7906169 to your computer and use it in GitHub Desktop.
'use strict';
/**
* @typedef {Entity} DomainEntity
*
* @property {function(): String} getId
* @property {function(): String} getName
* @property {function(): Number} getPrice
* @property {function(): Number} getQuantity
*
* @property {function(String): DomainEntity} setId
* @property {function(String): DomainEntity} setName
* @property {function(Number): DomainEntity} setPrice
* @property {function(Number): DomainEntity} setQuantity
*/
exports.Entity = {
id: '',
name: '',
price: '',
quantity: 1
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment