Skip to main content
Module

x/ts_morph/mod.ts>ConditionalTypeNode#getTrueType

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

Gets the conditional type node's true type.

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

Returns

TypeNode<ts.TypeNode>