Przeglądaj źródła

declare unlink method

kaori 3 lat temu
rodzic
commit
71b1d4e4fd

+ 4 - 0
packages/app/src/client/services/page-operation.ts

@@ -199,3 +199,7 @@ export const useUpdateStateAfterSave = () => {
     setRemoteLatestPageData(remoterevisionData);
   };
 };
+
+export const unlink = async(path: string): Promise<void> => {
+  await apiPost('/pages.unlink', { path });
+};