Skip to content

baremethod

Algorand TypeScript


Algorand TypeScript / arc4 / baremethod

baremethod<TContract>(config?): <TArgs, TReturn>(target, ctx) => (this, …args) => TReturn

Defined in: arc4/index.ts:197

Declares the decorated method as a baremethod that can only be called with no transaction args

TContract extends Contract

the type of the contract this method is a part of

BareMethodConfig

The config for this bare method

<TArgs, TReturn>(target, ctx): (this, …args) => TReturn

TArgs extends any[]

TReturn

(this, …args) => TReturn

ClassMethodDecoratorContext<TContract>

(this, …args): TReturn

TContract

TArgs

TReturn