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

    Utility class for building TypeScript class methods for Services. Designed to be injected via DI.

    Index

    Constructors

    Methods

    Constructors

    Methods

    • Builds a public method declaration.

      Parameters

      • name: string

        The name of the method.

      • parameters: ParameterDeclaration[]

        The array of parameter declarations.

      • returnType: TypeNode

        The return type node (e.g. Observable).

      • body: Block

        The block of code inside the method.

      • Optionaldescription: string

        Optional JSDoc description.

      Returns MethodDeclaration

      The MethodDeclaration AST node.