Skip to content

baremethod

@algorandfoundation/algorand-typescript


@algorandfoundation/algorand-typescript / arc4 / baremethod

Function: baremethod()

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

Defined in: packages/algo-ts/src/arc4/index.ts:153

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

Type Parameters

TContract extends Contract

the type of the contract this method is a part of

Parameters

config?

BareMethodConfig

The config for this bare method

Returns

Function

Type Parameters

TArgs extends any[]

TReturn

Parameters

target

(this, …args) => TReturn

ctx

ClassMethodDecoratorContext<TContract>

Returns

Function

Parameters

this

TContract

args

TArgs

Returns

TReturn