Options
All
  • Public
  • Public/Protected
  • All
Menu

External module "src/return"

Index

Modules

Functions

Functions

Return

  • Return<T>(val: T): void
  • set value as return value. This value will be printed to console or return within response if you call API by POST method via https. Till now, type T can only be string or integer. NOTE: the return value doesn't mean the transaction is commited by blockchain, but means if the transaction is executed, the result will be it.

    Type parameters

    • T

    Parameters

    • val: T

      value will set as return value.

    Returns void

ReturnArray

  • ReturnArray<T>(val: T[]): void
  • return an array to caller. It behaves like Return.

    Type parameters

    • T

    Parameters

    • val: T[]

      an array of returns value.

    Returns void

Generated using TypeDoc