Nog CLI Developer Guide - v0.11.0
    Preparing search index...

    Utility class for building complex TypeScript expressions (objects, arrays, functions). Designed to be injected via DI.

    Index

    Constructors

    Methods

    • Creates an array literal expression.

      Parameters

      • elements: Expression[]

        Array of AST Expressions.

      Returns ArrayLiteralExpression

      [elem1, elem2]
      
    • Creates an arrow function that returns an identifier.

      Parameters

      • identifierName: string

      Returns ArrowFunction

      () => GuardDogTraits
      
    • Creates an object literal expression.

      Parameters

      • props: Record<string, ts.Expression>

        A map of key-value pairs where values are AST Expressions.

      Returns ObjectLiteralExpression

      { keepDiscriminatorProperty: true }