Skip to content

Commit 52becfe

Browse files
authored
fix: make version param optional in patch method [DX-34] (#2609)
1 parent 3de4b0f commit 52becfe

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/plain/common-types.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ export type PlainClientAPI = {
287287
headers?: RawAxiosRequestHeaders
288288
): Promise<EntryProps<T>>
289289
patch<T extends KeyValueMap = KeyValueMap>(
290-
params: OptionalDefaults<GetSpaceEnvironmentParams & { entryId: string; version: number }>,
290+
params: OptionalDefaults<GetSpaceEnvironmentParams & { entryId: string; version?: number }>,
291291
rawData: OpPatch[],
292292
headers?: RawAxiosRequestHeaders
293293
): Promise<EntryProps<T>>

0 commit comments

Comments
 (0)