Skip to content

Commit 708d564

Browse files
authored
fix: add version param to patch method of plain client (#2547)
* fix: add `version` param to patch method of plain client * chore: run prettier
1 parent 947eabb commit 708d564

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
@@ -283,7 +283,7 @@ export type PlainClientAPI = {
283283
headers?: RawAxiosRequestHeaders
284284
): Promise<EntryProps<T>>
285285
patch<T extends KeyValueMap = KeyValueMap>(
286-
params: OptionalDefaults<GetSpaceEnvironmentParams & { entryId: string }>,
286+
params: OptionalDefaults<GetSpaceEnvironmentParams & { entryId: string; version: number }>,
287287
rawData: OpPatch[],
288288
headers?: RawAxiosRequestHeaders
289289
): Promise<EntryProps<T>>

0 commit comments

Comments
 (0)