From 077a4b0d699fddcb55fbe641a33b4b0d681e69c4 Mon Sep 17 00:00:00 2001 From: locriacyber <74560659+locriacyber@users.noreply.github.com> Date: Thu, 23 Dec 2021 16:41:03 +0100 Subject: [PATCH] Update index.ts --- src/index.ts | 12 ++---------- 1 file changed, 2 insertions(+), 10 deletions(-) diff --git a/src/index.ts b/src/index.ts index ac11a87..3703c71 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1,13 +1,5 @@ import { initializeDom, NSVElement } from './dom'; - - -declare global { - export class SvelteComponent { - $destroy(): void; - constructor(options: { target?: NSVElement | Element, props?: any, anchor?: NSVElement | Element, intro?: boolean }); - $set(props: any): void; - } -} +import { SvelteComponent } from 'svelte'; export function svelteNodeGUI(rootElement: typeof SvelteComponent, data: any): Promise { const doc = initializeDom(); @@ -59,4 +51,4 @@ export { BoxViewProps, RNBoxView, GridViewProps, RNGridView, ScrollAreaProps, RNScrollArea, -} from "./dom/react-nodegui/src"; \ No newline at end of file +} from "./dom/react-nodegui/src";