svelte-props-4-to-5 READMEConverts props declaration that uses Svelte 4 syntax into Svelte 5 syntax. NOTE! Does not properly format the code - use prettier/linter to auto format instead. Example:export let a: number = 1; export let b: string = "hello"; export let c: boolean = true; converts into: let { a = 1, b = "hello", c = true }: { a: number, b: string, c: boolean } = $props(); (except the formatting will be broken until auto-formatted by prettier) |