diff --git a/ts-router/src/pages/about.data.ts b/ts-router/src/pages/about.data.ts index adbff32..64977a9 100644 --- a/ts-router/src/pages/about.data.ts +++ b/ts-router/src/pages/about.data.ts @@ -1,5 +1,5 @@ import type { RouteDataFunc } from '@solidjs/router'; -import { createResource } from 'solid-js'; +import { createResource, Resource } from 'solid-js'; function wait(ms: number, data: T): Promise { return new Promise((resolve) => setTimeout(resolve, ms, data));