diff --git a/src/ParseObject.ts b/src/ParseObject.ts index 59a486618..e99f61f79 100644 --- a/src/ParseObject.ts +++ b/src/ParseObject.ts @@ -1250,7 +1250,7 @@ class ParseObject { * @returns {Promise} A promise that is fulfilled when the fetch * completes. */ - fetch(options: FetchOptions): Promise { + fetch(options?: FetchOptions): Promise { const fetchOptions = ParseObject._getRequestOptions(options); const controller = CoreManager.getObjectController(); return controller.fetch(this, true, fetchOptions) as Promise; diff --git a/types/ParseObject.d.ts b/types/ParseObject.d.ts index 135759a53..4a653ece8 100644 --- a/types/ParseObject.d.ts +++ b/types/ParseObject.d.ts @@ -448,7 +448,7 @@ declare class ParseObject { * @returns {Promise} A promise that is fulfilled when the fetch * completes. */ - fetch(options: FetchOptions): Promise; + fetch(options?: FetchOptions): Promise; /** * Fetch the model from the server. If the server's representation of the * model differs from its current attributes, they will be overriden.