Skip to main content
Module

x/ts_morph/mod.ts>Node#getPreviousSiblingOrThrow

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

Gets the previous sibling or throws.

Parameters

optional
condition: (node: Node) => node is T
  • Optional condition for getting the previous sibling.
optional
message: string | (() => string)

Gets the previous sibling or throws.

Parameters

optional
condition: (node: Node) => boolean
  • Optional condition for getting the previous sibling.
optional
message: string | (() => string)