Options
All
  • Public
  • Public/Protected
  • All
Menu

Generates a type guard for a type.

Hierarchy

  • TypeGuardNode

Implements

Index

Constructors

Properties

Methods

Constructors

constructor

  • new TypeGuardNode(def: string, name: string, has: string[]): TypeGuardNode

Properties

Readonly def

def: string

Readonly has

has: string[]

Readonly name

name: string

Readonly newLines

newLines: 1 = 1

The number of extra new lines added after the node has generated code.

Readonly types

types: string[] = ...

Methods

generateCode

  • generateCode(out: (code: string) => void): void

Generated using TypeDoc