Skip to content

An open-source, privacy-first, self-hosted knowledge workspace where humans and AI agents work together 开源、隐私优先、自托管的知识工作空间,让人与智能体在此协作

:bug: 修复 paste 事件 response 类型导致的 TS2322 #18034

Daniel43df2df2d86b
diff --git a/app/src/protyle/util/paste.ts b/app/src/protyle/util/paste.ts
index 6fe34126ee..f077d8f0d6 100644
--- a/app/src/protyle/util/paste.ts
+++ b/app/src/protyle/util/paste.ts
@@ -351,7 +351,7 @@ export const paste = async (protyle: IProtyle, event: (ClipboardEvent | DragEven
if (protyle && protyle.app && protyle.app.plugins) {
for (let i = 0; i < protyle.app.plugins.length; i++) {
- const response: IObject & { files: FileList } = await new Promise((resolve) => {
+ const response: IClipboardData & { files: FileList } = await new Promise((resolve) => {
const emitResult = protyle.app.plugins[i].eventBus.emit("paste", {
protyle,
resolve,