We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents b9d9912 + ef726a3 commit bb5cafdCopy full SHA for bb5cafd
websocket/patch.ts
@@ -1,4 +1,4 @@
1
-import type { Change, DeletePageChange, PinChange } from "./change.ts";
+import type { Change, DeletePageChange } from "./change.ts";
2
import { makeChanges } from "./makeChanges.ts";
3
import type { BaseLine, Page } from "@cosense/types/rest";
4
import { push, type PushError, type PushOptions } from "./push.ts";
@@ -73,7 +73,7 @@ export const patch = (
73
return prev.map((change) => {
74
if ("title" in change) change.title = fallbackTitle;
75
return change;
76
- }) as Change[] | [DeletePageChange] | [PinChange];
+ }) as Change[] | [DeletePageChange];
77
}
78
const pending = update(page.lines, { ...page, attempts });
79
const newLines = pending instanceof Promise ? await pending : pending;
0 commit comments