-
-
Notifications
You must be signed in to change notification settings - Fork 206
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
52bbdd3
commit 041d102
Showing
2 changed files
with
2 additions
and
16 deletions.
There are no files selected for viewing
14 changes: 0 additions & 14 deletions
14
packages/svelte2tsx/test/svelte2tsx/samples/runes-looking-like-stores/expected-svelte5.ts
This file was deleted.
Oops, something went wrong.
4 changes: 2 additions & 2 deletions
4
packages/svelte2tsx/test/svelte2tsx/samples/runes-looking-like-stores/expectedv2.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
///<reference types="svelte" /> | ||
;function render() { | ||
|
||
let { props } = $props(); | ||
let/** @type {{ props: unknown }} */ { props } = $props(); | ||
let state = $state(0); | ||
let derived = $derived(state * 2); | ||
; | ||
async () => { | ||
|
||
state; derived;}; | ||
return { props: /** @type {Record<string, never>} */ ({}), slots: {}, events: {} }} | ||
return { props: /** @type {{ props: unknown }} */({}), slots: {}, events: {} }} | ||
|
||
export default class Input__SvelteComponent_ extends __sveltets_2_createSvelte2TsxComponent(__sveltets_2_partial(__sveltets_2_with_any_event(render()))) { | ||
} |