Skip to content

Commit 8820897

Browse files
committed
test(web): type the refreshed memo as Refreshable in the #4425 pin
1 parent 3e5bf85 commit 8820897

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎packages/web/test/errored-recovery-nested-loading-4425.spec.tsx‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
* refresh landing is the new answer (D-39).
1515
*/
1616
import { expect, test } from "vitest";
17-
import { Errored, For, Loading, Show, createMemo, flush, refresh } from "solid-js";
17+
import { Errored, For, Loading, Show, createMemo, flush, refresh, type Refreshable } from "solid-js";
1818
import { render } from "../src/index.js";
1919

2020
const tick = async () => {
@@ -35,7 +35,7 @@ async function run(nested: boolean) {
3535
};
3636
const container = document.body.appendChild(document.createElement("div"));
3737
const text = () => container.textContent;
38-
let detail!: () => any;
38+
let detail!: Refreshable<() => any>;
3939

4040
function Related(props: { title: string }) {
4141
const hits = createMemo(() => ask(`search:${props.title}`));

0 commit comments

Comments
 (0)