Skip to content

Commit 4b69699

Browse files
Other basic migration
1 parent c563339 commit 4b69699

File tree

9 files changed

+14
-24
lines changed

9 files changed

+14
-24
lines changed

src/lib/components/BlinkingBadge.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script lang="ts">
2-
import { onMount } from "svelte";
2+
import { onMount, type Snippet } from "svelte";
33
import { get } from "svelte/store";
44
import { persisted } from "svelte-persisted-store";
55
import { plainTextSerializer } from "$lib/stores";
@@ -13,7 +13,7 @@
1313
* Whether to show the pulse animation.
1414
*/
1515
show?: boolean;
16-
children?: import("svelte").Snippet;
16+
children?: Snippet;
1717
};
1818
1919
let { storedDateItem, show = false, children }: Props = $props();

src/lib/components/GHBadge.svelte

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
3030
let { type, status }: Props = $props();
3131
32-
let icon = $state<ComponentType<Icon> | null>(null);
32+
let icon = $state<ComponentType<Icon>>();
3333
let label = $state("");
3434
let color = $state("");
3535

src/lib/components/ScreenSize.svelte

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,13 +13,12 @@
1313
size: parseInt(configScreens[screen as keyof typeof configScreens].replace("px", ""))
1414
}))
1515
.sort((a, b) => a.size - b.size);
16-
let matchingScreen: (typeof screens)[number] | undefined = $derived(screens.findLast(screen => screen.size <= width));
16+
let matchingScreen = $derived(screens.findLast(screen => screen.size <= width));
1717
1818
let width = $state(0);
1919
let height = $state(0);
2020
2121
let showAllScreens = $state(false);
22-
2322
</script>
2423

2524
<svelte:window bind:innerWidth={width} bind:innerHeight={height} />

src/lib/components/Step.svelte

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
<script lang="ts">
2+
import type { Snippet } from "svelte";
23
import { cn } from "$lib/utils";
34
45
type Props = {
56
class?: string | undefined | null;
6-
stepIcon?: import("svelte").Snippet;
7-
children?: import("svelte").Snippet;
7+
stepIcon?: Snippet;
8+
children?: Snippet;
89
};
910
1011
let { class: className = undefined, stepIcon, children }: Props = $props();

src/lib/components/Steps.svelte

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
<script lang="ts">
2+
import type { Snippet } from "svelte";
23
import { cn } from "$lib/utils";
34
45
type Props = {
56
class?: string | undefined | null;
6-
children?: import("svelte").Snippet;
7+
children?: Snippet;
78
[key: string]: any;
89
};
910

src/lib/components/renderers/BodyRenderer.svelte

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,8 @@
22
import { run } from "svelte/legacy";
33
44
import { page } from "$app/stores";
5-
type Props = {
6-
children?: import("svelte").Snippet;
7-
};
85
9-
let { children }: Props = $props();
6+
let { children } = $props();
107
let data = $state<HTMLParagraphElement>();
118
129
const org = $page.data.org;

src/lib/components/renderers/ListElementRenderer.svelte

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,8 @@
33
44
import { ArrowRight } from "lucide-svelte";
55
import { Button } from "$lib/components/ui/button";
6-
type Props = {
7-
children?: import("svelte").Snippet;
8-
};
96
10-
let { children }: Props = $props();
7+
let { children } = $props();
118
129
let data = $state<HTMLLIElement>();
1310
let pullsLinks: string[] = [];

src/routes/+layout.svelte

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -30,12 +30,7 @@
3030
initTabState();
3131
const tabState = getTabState();
3232
33-
type Props = {
34-
data: any;
35-
children?: import("svelte").Snippet;
36-
};
37-
38-
let { data, children }: Props = $props();
33+
let { data, children } = $props();
3934
let { repos } = $derived(data);
4035
4136
let scrollY = $state(0);

src/routes/[pullOrIssue=poi]/[org]/[repo]/[id=number]/BottomCollapsible.svelte

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<script lang="ts">
2-
import type { ComponentType } from "svelte";
2+
import type { ComponentType, Snippet } from "svelte";
33
import type { Icon } from "lucide-svelte";
44
import * as Accordion from "$lib/components/ui/accordion";
55
@@ -10,7 +10,7 @@
1010
label: string;
1111
secondaryLabel?: string | undefined;
1212
openByDefault?: boolean;
13-
children?: import("svelte").Snippet;
13+
children?: Snippet;
1414
};
1515
1616
let {

0 commit comments

Comments
 (0)