Skip to main content
Deno 2 is finally here 🎉️
Learn more
Module

x/fresh/src/dev/deps.ts>Node.is

The next-gen web framework.
Extremely Popular
Go to Latest
method Node.is
import { Node } from "https://deno.land/x/fresh@1.6.1/src/dev/deps.ts";

Creates a type guard for syntax kinds.

Type Parameters

TKind extends keyof KindToNodeMappings

Returns

(node: Node | undefined) => node is KindToNodeMappings[TKind]