Skip to content

Build your personal knowledge base with Trilium Notes

fix(client): keep `ref` on the Electron `<webview>` element under Preact 11

Elian Doran9f2d5be4f0a9
diff --git a/apps/client/src/types-lib.d.ts b/apps/client/src/types-lib.d.ts
index 2059053572..8686945761 100644
--- a/apps/client/src/types-lib.d.ts
+++ b/apps/client/src/types-lib.d.ts
@@ -1,4 +1,4 @@
-export {};
+import type { HTMLAttributes } from "preact";
declare module "htmldiff-js" {
const HtmlDiff: {
@@ -52,7 +52,7 @@ declare global {
declare module "preact" {
namespace JSX {
- interface ElectronWebViewElement extends JSX.HTMLAttributes<HTMLElement> {
+ interface ElectronWebViewElement extends HTMLAttributes<HTMLElement> {
src: string;
class: string;
key?: string | number;