Type alias EsBuilder

EsBuilder: ((this, code, scope) => void | PromiseLike<void>)

Type declaration

    • (this, code, scope): void | PromiseLike<void>
    • Code builder signature.

      Can be used as code snippet.

      Invoked at code emission to build the code and write it to the given code fragment.

      Parameters

      • this: void
      • code: EsCode

        Code fragment to write the built code into.

      • scope: EsScope

        Code emission scope.

      Returns void | PromiseLike<void>

      None when code built synchronously, or promise-like instance resolved when code built asynchronously.

Generated using TypeDoc