Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/ParseObject.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1250,7 +1250,7 @@ class ParseObject<T extends Attributes = Attributes> {
* @returns {Promise} A promise that is fulfilled when the fetch
* completes.
*/
fetch(options: FetchOptions): Promise<this> {
fetch(options?: FetchOptions): Promise<this> {
const fetchOptions = ParseObject._getRequestOptions(options);
const controller = CoreManager.getObjectController();
return controller.fetch(this, true, fetchOptions) as Promise<this>;
Expand Down
2 changes: 1 addition & 1 deletion types/ParseObject.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -448,7 +448,7 @@ declare class ParseObject<T extends Attributes = Attributes> {
* @returns {Promise} A promise that is fulfilled when the fetch
* completes.
*/
fetch(options: FetchOptions): Promise<this>;
fetch(options?: FetchOptions): Promise<this>;
/**
* Fetch the model from the server. If the server's representation of the
* model differs from its current attributes, they will be overriden.
Expand Down