Module

x/ts_morph/mod.ts>Writers.unionType

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

Gets a writer function for writing a union type (ex. FirstType | SecondType).

Returns

(writer: CodeBlockWriter) => void