Skip to content

Commit

Permalink
Fix type
Browse files Browse the repository at this point in the history
  • Loading branch information
harsh-mn-yral committed Dec 20, 2023
1 parent 2dc732e commit 90a5b29
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 10 deletions.
14 changes: 8 additions & 6 deletions packages/experiments/src/app.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,15 @@ declare namespace App {
// interface Stuff {}
}

namespace svelte.JSX {
declare namespace svelteHTML {
interface SvelteWindowProps {
onbeforeinstallprompt?:
| EventHandler<BeforeInstallPromptEvent, Window>
| undefined
| null
onappinstalled?: EventHandler<Event, Window> | undefined | null
'on:beforeinstallprompt'?: (
event: EventHandler<BeforeInstallPromptEvent, Window> | undefined | null,
) => any

'on:appinstalled'?: (
event: EventHandler<Event, Window> | undefined | null,
) => any
}

interface HTMLProps<T> {
Expand Down
3 changes: 1 addition & 2 deletions packages/experiments/src/components/layout/FeedLayout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,7 @@ $: testClasses = testMode ? 'border-2 border-white/30' : ''

<feed
style="height: 100vh;"
class="relative block h-full w-full overflow-hidden text-white"
on:keyup>
class="relative block h-full w-full overflow-hidden text-white">
<slot name="content" />
<div class="absolute inset-x-0 top-0 z-[5] {testClasses}">
<slot name="top" />
Expand Down
3 changes: 1 addition & 2 deletions packages/experiments/src/components/layout/HomeLayout.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,7 @@ $: testClasses = testMode ? 'border-2 border-white/30' : ''

<home
style="height: 100dvh;"
class="relative block h-full w-full overflow-hidden text-white"
on:keyup>
class="relative block h-full w-full overflow-hidden text-white">
<slot name="content" />
<div class="absolute inset-x-0 top-4 z-[11] {testClasses}">
<slot name="top" />
Expand Down

0 comments on commit 90a5b29

Please sign in to comment.