Skip to content

Commit

Permalink
fix more warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
Rich-Harris committed Jun 20, 2024
1 parent e148b87 commit 609fc82
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 6 deletions.
2 changes: 1 addition & 1 deletion apps/svelte.dev/src/lib/components/Lazy.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
this: () => Promise<Component>;
} = $props();
let constructor: Component;
let constructor = $state() as Component;
onMount(async () => {
constructor = await importer();
Expand Down
3 changes: 1 addition & 2 deletions apps/svelte.dev/src/routes/(authed)/repl/[id]/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@
let { data } = $props();
let version = $state(data.version);
let repl: Repl;
let repl = $state() as Repl;
let name = $state(data.gist.name);
let zen_mode = $state(false);
let modified_count = $state(0);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,7 @@
let { data } = $props();
let version = $state(data.version);
let repl: import('@sveltejs/repl').default;
let repl = $state() as Repl;
function update_query_string(version: string) {
const params = [];
Expand Down
2 changes: 1 addition & 1 deletion packages/site-kit/src/lib/search/SearchBox.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ It appears when the user clicks on the `Search` component or presses the corresp
let { placeholder = 'Search', idle, search_description, no_results }: Props = $props();
let modal: HTMLElement;
let modal = $state() as HTMLElement;
// TODO proper types
let search: any = $state(null);
Expand Down

0 comments on commit 609fc82

Please sign in to comment.