From 47d7f21f3538768e9b811275d0823110a68ccae2 Mon Sep 17 00:00:00 2001 From: swittk Date: Sat, 20 Sep 2025 14:29:17 +0700 Subject: [PATCH 1/2] Update ParseObject.ts FetchOptions should be an optional parameter same as before the V6 changes. The ObjectController downstream already handles this parameter as optional. --- src/ParseObject.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; From 3e85bdb75e26f79bab239d53fa687f1c2943f54e Mon Sep 17 00:00:00 2001 From: Switt Kongdachalert Date: Tue, 30 Sep 2025 17:38:35 +0700 Subject: [PATCH 2/2] ran build:types --- types/ParseObject.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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.