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://dotland.deno.dev/x/fresh@1.1.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]