Skip to content
This repository was archived by the owner on Mar 18, 2025. It is now read-only.

Commit 5310cbd

Browse files
committed
chore: Show typing
1 parent 56be639 commit 5310cbd

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

demo/src/App.svelte

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
<script lang="ts">
22
import { onMount } from 'svelte';
3+
import type { NSVElement, RNWindow } from "@nodegui/svelte-nodegui";
34
let win;
45
onMount(() => {
56
(window as any).win = win; // Prevent garbage collection.
6-
win.nativeView.show();
7+
(win as NSVElement<RNWindow>).nativeView.show();
78
return () => {
89
delete (window as any).win;
910
};

0 commit comments

Comments
 (0)