Skip to content

GadgetExecuteReturn

GadgetExecuteReturn = string | GadgetExecuteResult | GadgetExecuteResultWithMedia

Defined in: gadgets/types.ts:188

Union type for backwards-compatible execute() return type. Gadgets can return:

  • string (legacy, cost = 0)
  • GadgetExecuteResult (result + optional cost)
  • GadgetExecuteResultWithMedia (result + optional media + optional cost)