@@ -624,7 +624,7 @@ class ParseObject {
624
624
* @param { } value The value to give it.
625
625
* @param {Object } options A set of options for the set.
626
626
* The only supported option is <code>error</code>.
627
- * @return {Boolean } true if the set succeeded.
627
+ * @return {(ParseObject| Boolean) } true if the set succeeded.
628
628
*/
629
629
set ( key : mixed , value : mixed , options ? : mixed ) : ParseObject | boolean {
630
630
let changes = { } ;
@@ -728,6 +728,7 @@ class ParseObject {
728
728
* Remove an attribute from the model. This is a noop if the attribute doesn't
729
729
* exist.
730
730
* @param {String } attr The string name of an attribute.
731
+ * @return {(ParseObject|Boolean) }
731
732
*/
732
733
unset ( attr : string , options ?: { [ opt : string ] : mixed } ) : ParseObject | boolean {
733
734
options = options || { } ;
@@ -741,6 +742,7 @@ class ParseObject {
741
742
*
742
743
* @param attr {String} The key.
743
744
* @param amount {Number} The amount to increment by (optional).
745
+ * @return {(ParseObject|Boolean) }
744
746
*/
745
747
increment ( attr : string , amount ? : number ) : ParseObject | boolean {
746
748
if ( typeof amount === 'undefined' ) {
@@ -768,6 +770,7 @@ class ParseObject {
768
770
* key.
769
771
* @param attr {String} The key.
770
772
* @param items {Object[]} The items to add.
773
+ * @return {(ParseObject|Boolean) }
771
774
*/
772
775
addAll ( attr : string , items : Array < mixed > ) : ParseObject | boolean {
773
776
return this . set ( attr , new AddOp ( items ) ) ;
@@ -780,6 +783,7 @@ class ParseObject {
780
783
*
781
784
* @param attr {String} The key.
782
785
* @param item { } The object to add.
786
+ * @return {(ParseObject|Boolean) }
783
787
*/
784
788
addUnique ( attr : string , item : mixed ) : ParseObject | boolean {
785
789
return this . set ( attr , new AddUniqueOp ( [ item ] ) ) ;
@@ -792,6 +796,7 @@ class ParseObject {
792
796
*
793
797
* @param attr {String} The key.
794
798
* @param items {Object[]} The objects to add.
799
+ * @return {(ParseObject|Boolean) }
795
800
*/
796
801
addAllUnique ( attr : string , items : Array < mixed > ) : ParseObject | boolean {
797
802
return this . set ( attr , new AddUniqueOp ( items ) ) ;
@@ -803,6 +808,7 @@ class ParseObject {
803
808
*
804
809
* @param attr {String} The key.
805
810
* @param item { } The object to remove.
811
+ * @return {(ParseObject|Boolean) }
806
812
*/
807
813
remove ( attr : string , item : mixed ) : ParseObject | boolean {
808
814
return this . set ( attr , new RemoveOp ( [ item ] ) ) ;
@@ -814,6 +820,7 @@ class ParseObject {
814
820
*
815
821
* @param attr {String} The key.
816
822
* @param items {Object[]} The object to remove.
823
+ * @return {(ParseObject|Boolean) }
817
824
*/
818
825
removeAll ( attr : string , items : Array < mixed > ) : ParseObject | boolean {
819
826
return this . set ( attr , new RemoveOp ( items ) ) ;
@@ -963,7 +970,7 @@ class ParseObject {
963
970
* Sets the ACL to be used for this object.
964
971
* @param {Parse.ACL } acl An instance of Parse.ACL.
965
972
* @param {Object } options
966
- * @return {Boolean } Whether the set passed validation.
973
+ * @return {(ParseObject| Boolean) } Whether the set passed validation.
967
974
* @see Parse.Object#set
968
975
*/
969
976
setACL ( acl : ParseACL , options ? : mixed ) : ParseObject | boolean {
0 commit comments