@comapeo/core-react 10.0.0 → 10.0.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -123,6 +123,7 @@ export declare function useUpdateDocument<D extends WriteableDocumentType>({ doc
123
123
  projectId: string;
124
124
  }): FilteredMutationResult<UseMutationResult<Awaited<ReturnType<MapeoProjectApi[D]['update']>>, Error, {
125
125
  value: Omit<WriteableValue<D>, 'schemaName'>;
126
+ versionId: string;
126
127
  }>>;
127
128
  /**
128
129
  * Delete a document within a project.
@@ -199,7 +199,6 @@ function useUpdateDocument({
199
199
  docType, projectId, }) {
200
200
  const queryClient = (0, react_query_1.useQueryClient)();
201
201
  const { data: projectApi } = (0, projects_js_1.useSingleProject)({ projectId });
202
- // @ts-expect-error Not sure why TS complains here
203
202
  return (0, react_query_js_1.filterMutationResult)((0, react_query_1.useMutation)({
204
203
  ...(0, react_query_js_1.baseMutationOptions)(),
205
204
  mutationFn: async ({ versionId, value, }) => {
@@ -123,6 +123,7 @@ export declare function useUpdateDocument<D extends WriteableDocumentType>({ doc
123
123
  projectId: string;
124
124
  }): FilteredMutationResult<UseMutationResult<Awaited<ReturnType<MapeoProjectApi[D]['update']>>, Error, {
125
125
  value: Omit<WriteableValue<D>, 'schemaName'>;
126
+ versionId: string;
126
127
  }>>;
127
128
  /**
128
129
  * Delete a document within a project.
@@ -190,7 +190,6 @@ export function useUpdateDocument({
190
190
  docType, projectId, }) {
191
191
  const queryClient = useQueryClient();
192
192
  const { data: projectApi } = useSingleProject({ projectId });
193
- // @ts-expect-error Not sure why TS complains here
194
193
  return filterMutationResult(useMutation({
195
194
  ...baseMutationOptions(),
196
195
  mutationFn: async ({ versionId, value, }) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@comapeo/core-react",
3
- "version": "10.0.0",
3
+ "version": "10.0.1",
4
4
  "description": "React wrapper for working with @comapeo/core",
5
5
  "repository": {
6
6
  "type": "git",