Skip to content

Commit 47d7f21

Browse files
authored
Update ParseObject.ts
FetchOptions should be an optional parameter same as before the V6 changes. The ObjectController downstream already handles this parameter as optional.
1 parent 6941012 commit 47d7f21

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/ParseObject.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1250,7 +1250,7 @@ class ParseObject<T extends Attributes = Attributes> {
12501250
* @returns {Promise} A promise that is fulfilled when the fetch
12511251
* completes.
12521252
*/
1253-
fetch(options: FetchOptions): Promise<this> {
1253+
fetch(options?: FetchOptions): Promise<this> {
12541254
const fetchOptions = ParseObject._getRequestOptions(options);
12551255
const controller = CoreManager.getObjectController();
12561256
return controller.fetch(this, true, fetchOptions) as Promise<this>;

0 commit comments

Comments
 (0)