Module

x/ts_morph/mod.ts>Node.hasBody

TypeScript Compiler API wrapper for static analysis and programmatic code changes.
Very Popular
Go to Latest
method Node.hasBody
import { Node } from "https://dotland.deno.dev/x/ts_morph@21.0.1/mod.ts";

Gets if the node has a body.

Parameters

node: T
  • Node to check.

Returns

node is T & { getBody(): Node; }