Skip to content

Commit b5cb05f

Browse files
committed
yes, they work now
1 parent 44f23d2 commit b5cb05f

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

packages/svelte/tests/store/test.ts

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -272,7 +272,6 @@ describe('derived', () => {
272272
const number = writable(1);
273273
const evens = derived(
274274
number,
275-
// @ts-expect-error TODO feels like inference should work here
276275
(n, set) => {
277276
if (n % 2 === 0) set(n);
278277
},
@@ -303,10 +302,8 @@ describe('derived', () => {
303302
const number = writable(1);
304303
const evensAndSquaresOf4 = derived(
305304
number,
306-
// @ts-expect-error TODO feels like inference should work here
307305
(n, set, update) => {
308306
if (n % 2 === 0) set(n);
309-
// @ts-expect-error TODO feels like inference should work here
310307
if (n % 4 === 0) update((n) => n * n);
311308
},
312309
0
@@ -442,7 +439,6 @@ describe('derived', () => {
442439
const values: number[] = [];
443440
const cleaned_up: number[] = [];
444441

445-
// @ts-expect-error TODO feels like inference should work here
446442
const d = derived(num, ($num, set) => {
447443
set($num * 2);
448444

@@ -516,7 +512,6 @@ describe('derived', () => {
516512
const a = writable(true);
517513
let b_started = false;
518514

519-
// @ts-expect-error TODO feels like inference should work here
520515
const b = derived(a, (_, __) => {
521516
b_started = true;
522517
return () => {
@@ -525,7 +520,6 @@ describe('derived', () => {
525520
};
526521
});
527522

528-
// @ts-expect-error TODO feels like inference should work here
529523
const c = derived(a, ($a, set) => {
530524
if ($a) return b.subscribe(set);
531525
});

0 commit comments

Comments
 (0)