Skip to main content
Module

x/ts_morph/mod.ts>ConditionalTypeNode#getExtendsType

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

Gets the conditional type node's extends type.

Ex. In CheckType extends ExtendsType ? TrueType : FalseType returns ExtendsType.

Returns

TypeNode<ts.TypeNode>