-
-
Notifications
You must be signed in to change notification settings - Fork 57
Open
Description
Hi,
I'm trying to fix #1319 but it seems like I can't get proper SvelteKit types in the tests. I was trying this code:
<script lang="ts">
import { type ResolvedPathname } from '$app/types';
import { goto } from '$app/navigation';
interface Props {
href: ResolvedPathname;
}
const { href }: Props = $props();
goto(href);
</script>
I found the node for the href
parameter of the goto
call (the Identifier
node) and did this:
const tsNode = tsTools.service.esTreeNodeToTSNodeMap.get(node);
console.log(tsTools.service.program.getTypeChecker().getTypeAtLocation(tsNode));
and the resulting type has intrinsicName: "error"
. I think this is because we don't have SvelteKit in the tests, could we add that?
Metadata
Metadata
Assignees
Labels
No labels