Skip to content

Commit a990e57

Browse files
authored
fix tsconfig.json (#9427)
* fix tsconfig.json * prettier * another apparently-necessary fix --------- Co-authored-by: Rich Harris <[email protected]>
1 parent 5768df1 commit a990e57

File tree

3 files changed

+4
-5
lines changed

3 files changed

+4
-5
lines changed

packages/svelte/src/transition/index.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,14 +83,14 @@ export function fly(
8383
const target_opacity = +style.opacity;
8484
const transform = style.transform === 'none' ? '' : style.transform;
8585
const od = target_opacity * (1 - opacity);
86-
const [xValue, xUnit] = split_css_unit(x);
87-
const [yValue, yUnit] = split_css_unit(y);
86+
const [x_value, x_unit] = split_css_unit(x);
87+
const [y_value, y_unit] = split_css_unit(y);
8888
return {
8989
delay,
9090
duration,
9191
easing,
9292
css: (t, u) => `
93-
transform: ${transform} translate(${(1 - t) * xValue}${xUnit}, ${(1 - t) * yValue}${yUnit});
93+
transform: ${transform} translate(${(1 - t) * x_value}${x_unit}, ${(1 - t) * y_value}${y_unit});
9494
opacity: ${target_opacity - od * u}`
9595
};
9696
}

packages/svelte/tsconfig.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
"svelte/action": ["./src/action/public.d.ts"],
2020
"svelte/compiler": ["./src/compiler/public.d.ts"],
2121
"svelte/internal": ["./src/internal/index.js"],
22-
"svelte/legacy": ["./src/legacy/public.d.ts"],
22+
"svelte/legacy": ["./src/legacy/legacy-client.js"],
2323
"svelte/server": ["./src/server/index.js"],
2424
"svelte/store": ["./src/store/public.d.ts"],
2525
"#compiler": ["./src/compiler/types/index.d.ts"]

sites/svelte-5-preview/src/routes/docs/content/01-api/03-functions.md

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,3 @@ To prevent something from being treated as an `$effect`/`$derived` dependency, u
2222
});
2323
</script>
2424
```
25-

0 commit comments

Comments
 (0)