dav icon indicating copy to clipboard operation
dav copied to clipboard

convert all models into JSDoc @typedef

Open millermedeiros opened this issue 10 years ago • 1 comments

right now the models doesn't do anything, they just copy arbitrary properties on the constructor. It doesn't really make a lot of sense to have constructors that doesn't do anything, what we really need is an "interface".

I recommend a simple JSDoc @typedef instead:

/**
 * @typedef {Object} DAVObject
 * @property {Object} data
 * @property {string} etag
 * @property {string} url
 */

see #50

millermedeiros avatar Apr 07 '15 20:04 millermedeiros

I agree!

lambdabaa avatar Apr 13 '15 23:04 lambdabaa