@@ -241,97 +241,97 @@ declare class ParseObject {
241241 * @param {(string|object) } value The value to give it.
242242 * @param {object } options A set of options for the set.
243243 * The only supported option is <code>error</code>.
244- * @returns {(ParseObject|boolean) } true if the set succeeded .
244+ * @returns {Parse.Object } Returns the object, so you can chain this call .
245245 */
246- set ( key : any , value ?: any , options ?: any ) : ParseObject | boolean ;
246+ set ( key : any , value ?: any , options ?: any ) : this ;
247247 /**
248248 * Remove an attribute from the model. This is a noop if the attribute doesn't
249249 * exist.
250250 *
251251 * @param {string } attr The string name of an attribute.
252252 * @param options
253- * @returns {(ParseObject | boolean) }
253+ * @returns {Parse.Object } Returns the object, so you can chain this call.
254254 */
255255 unset (
256256 attr : string ,
257257 options ?: {
258258 [ opt : string ] : any ;
259259 }
260- ) : ParseObject | boolean ;
260+ ) : this ;
261261 /**
262262 * Atomically increments the value of the given attribute the next time the
263263 * object is saved. If no amount is specified, 1 is used by default.
264264 *
265265 * @param attr {String} The key.
266266 * @param amount {Number} The amount to increment by (optional).
267- * @returns {(ParseObject|boolean) }
267+ * @returns {Parse.Object } Returns the object, so you can chain this call.
268268 */
269- increment ( attr : string , amount ?: number ) : ParseObject | boolean ;
269+ increment ( attr : string , amount ?: number ) : this ;
270270 /**
271271 * Atomically decrements the value of the given attribute the next time the
272272 * object is saved. If no amount is specified, 1 is used by default.
273273 *
274274 * @param attr {String} The key.
275275 * @param amount {Number} The amount to decrement by (optional).
276- * @returns {(ParseObject | boolean) }
276+ * @returns {Parse.Object } Returns the object, so you can chain this call.
277277 */
278- decrement ( attr : string , amount ?: number ) : ParseObject | boolean ;
278+ decrement ( attr : string , amount ?: number ) : this ;
279279 /**
280280 * Atomically add an object to the end of the array associated with a given
281281 * key.
282282 *
283283 * @param attr {String} The key.
284284 * @param item { } The item to add.
285- * @returns {(ParseObject | boolean) }
285+ * @returns {Parse.Object } Returns the object, so you can chain this call.
286286 */
287- add ( attr : string , item : any ) : ParseObject | boolean ;
287+ add ( attr : string , item : any ) : this ;
288288 /**
289289 * Atomically add the objects to the end of the array associated with a given
290290 * key.
291291 *
292292 * @param attr {String} The key.
293293 * @param items {Object[]} The items to add.
294- * @returns {(ParseObject | boolean) }
294+ * @returns {Parse.Object } Returns the object, so you can chain this call.
295295 */
296- addAll ( attr : string , items : Array < any > ) : ParseObject | boolean ;
296+ addAll ( attr : string , items : Array < any > ) : this ;
297297 /**
298298 * Atomically add an object to the array associated with a given key, only
299299 * if it is not already present in the array. The position of the insert is
300300 * not guaranteed.
301301 *
302302 * @param attr {String} The key.
303303 * @param item { } The object to add.
304- * @returns {(ParseObject | boolean) }
304+ * @returns {Parse.Object } Returns the object, so you can chain this call.
305305 */
306- addUnique ( attr : string , item : any ) : ParseObject | boolean ;
306+ addUnique ( attr : string , item : any ) : this ;
307307 /**
308308 * Atomically add the objects to the array associated with a given key, only
309309 * if it is not already present in the array. The position of the insert is
310310 * not guaranteed.
311311 *
312312 * @param attr {String} The key.
313313 * @param items {Object[]} The objects to add.
314- * @returns {(ParseObject | boolean) }
314+ * @returns {Parse.Object } Returns the object, so you can chain this call.
315315 */
316- addAllUnique ( attr : string , items : Array < any > ) : ParseObject | boolean ;
316+ addAllUnique ( attr : string , items : Array < any > ) : this ;
317317 /**
318318 * Atomically remove all instances of an object from the array associated
319319 * with a given key.
320320 *
321321 * @param attr {String} The key.
322322 * @param item { } The object to remove.
323- * @returns {(ParseObject | boolean) }
323+ * @returns {Parse.Object } Returns the object, so you can chain this call.
324324 */
325- remove ( attr : string , item : any ) : ParseObject | boolean ;
325+ remove ( attr : string , item : any ) : this ;
326326 /**
327327 * Atomically remove all instances of the objects from the array associated
328328 * with a given key.
329329 *
330330 * @param attr {String} The key.
331331 * @param items {Object[]} The object to remove.
332- * @returns {(ParseObject | boolean) }
332+ * @returns {Parse.Object } Returns the object, so you can chain this call.
333333 */
334- removeAll ( attr : string , items : Array < any > ) : ParseObject | boolean ;
334+ removeAll ( attr : string , items : Array < any > ) : this ;
335335 /**
336336 * Returns an instance of a subclass of Parse.Op describing what kind of
337337 * modification has been performed on this field since the last time it was
@@ -410,10 +410,10 @@ declare class ParseObject {
410410 *
411411 * @param {Parse.ACL } acl An instance of Parse.ACL.
412412 * @param {object } options
413- * @returns {(ParseObject | boolean) } Whether the set passed validation .
413+ * @returns {Parse.Object } Returns the object, so you can chain this call .
414414 * @see Parse.Object#set
415415 */
416- setACL ( acl : ParseACL , options ?: any ) : ParseObject | boolean ;
416+ setACL ( acl : ParseACL , options ?: any ) : this ;
417417 /**
418418 * Clears any (or specific) changes to this object made since the last call to save()
419419 *
@@ -423,9 +423,9 @@ declare class ParseObject {
423423 /**
424424 * Clears all attributes on a model
425425 *
426- * @returns {(ParseObject | boolean) }
426+ * @returns {Parse.Object } Returns the object, so you can chain this call.
427427 */
428- clear ( ) : ParseObject | boolean ;
428+ clear ( ) : this ;
429429 /**
430430 * Fetch the model from the server. If the server's representation of the
431431 * model differs from its current attributes, they will be overriden.
0 commit comments