From 2c280645150c81e10f9b0f010f26ae65afebbb41 Mon Sep 17 00:00:00 2001
From: David Poetzsch-Heffter
Date: Tue, 11 Apr 2017 13:16:40 +0200
Subject: [PATCH] reverting some changes for now because they cause
incompatibilities with existing code bases These changes should be discussed
in a separate PR and might need to wait for default generic type arguments
(typescript 2.3)
---
types/parse/index.d.ts | 110 ++++++++++++++++++++---------------------
1 file changed, 55 insertions(+), 55 deletions(-)
diff --git a/types/parse/index.d.ts b/types/parse/index.d.ts
index d61e47ab9e..1a008c50cd 100644
--- a/types/parse/index.d.ts
+++ b/types/parse/index.d.ts
@@ -267,22 +267,22 @@ declare namespace Parse {
* A class that is used to access all of the children of a many-to-many relationship.
* Each instance of Parse.Relation is associated with a particular parent object and key.
*/
- class Relation extends BaseObject {
+ class Relation extends BaseObject {
- parent: S;
+ parent: Object;
key: string;
targetClassName: string;
- constructor(parent?: S, key?: string);
+ constructor(parent?: Object, key?: string);
//Adds a Parse.Object or an array of Parse.Objects to the relation.
- add(object: T): void;
+ add(object: Object): void;
// Returns a Parse.Query that is limited to objects in this relation.
- query(): Query;
+ query(): Query;
// Removes a Parse.Object or an array of Parse.Objects from this relation.
- remove(object: T): void;
+ remove(object: Object): void;
}
/**
@@ -355,7 +355,7 @@ declare namespace Parse {
op(attr: string): any;
previous(attr: string): any;
previousAttributes(): any;
- relation(attr: string): Relation;
+ relation(attr: string): Relation;
remove(attr: string, item: any): any;
save(attrs?: { [key: string]: any } | null, options?: Object.SaveOptions): Promise;
save(key: string, value: any, options?: Object.SaveOptions): Promise;
@@ -429,7 +429,7 @@ declare namespace Parse {
model: Object;
models: Object[];
- query: Query