Module

x/ts_morph/mod.ts>NodePropertyToWrappedType

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

Type Parameters

NodeType extends ts.Node
KeyName extends keyof NodeType
optional
NonNullableNodeType = NonNullable<NodeType[KeyName]>
definition: NodeType[KeyName] extends ts.NodeArray<infer ArrayNodeTypeForNullable> | undefined ? CompilerNodeToWrappedType<ArrayNodeTypeForNullable>[] | undefined : NodeType[KeyName] extends ts.NodeArray<infer ArrayNodeType> ? CompilerNodeToWrappedType<ArrayNodeType>[] : NodeType[KeyName] extends ts.Node ? CompilerNodeToWrappedType<NodeType[KeyName]> : NonNullableNodeType extends ts.Node ? CompilerNodeToWrappedType<NonNullableNodeType> | undefined : NodeType[KeyName]