Skip to content

Commit

Permalink
yes, they work now
Browse files Browse the repository at this point in the history
  • Loading branch information
dummdidumm committed May 2, 2024
1 parent 44f23d2 commit b5cb05f
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions packages/svelte/tests/store/test.ts
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,6 @@ describe('derived', () => {
const number = writable(1);
const evens = derived(
number,
// @ts-expect-error TODO feels like inference should work here
(n, set) => {
if (n % 2 === 0) set(n);
},
Expand Down Expand Up @@ -303,10 +302,8 @@ describe('derived', () => {
const number = writable(1);
const evensAndSquaresOf4 = derived(
number,
// @ts-expect-error TODO feels like inference should work here
(n, set, update) => {
if (n % 2 === 0) set(n);
// @ts-expect-error TODO feels like inference should work here
if (n % 4 === 0) update((n) => n * n);
},
0
Expand Down Expand Up @@ -442,7 +439,6 @@ describe('derived', () => {
const values: number[] = [];
const cleaned_up: number[] = [];

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

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

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

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

0 comments on commit b5cb05f

Please sign in to comment.