baremethod
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
Type Parameters
Section titled “Type Parameters”TContract
Section titled “TContract”TContract extends Contract
the type of the contract this method is a part of
Parameters
Section titled “Parameters”config?
Section titled “config?”The config for this bare method
Returns
Section titled “Returns”<
TArgs,TReturn>(target,ctx): (this, …args) =>TReturn
Type Parameters
Section titled “Type Parameters”TArgs extends any[]
TReturn
Section titled “TReturn”TReturn
Parameters
Section titled “Parameters”target
Section titled “target”(this, …args) => TReturn
ClassMethodDecoratorContext<TContract>
Returns
Section titled “Returns”(
this, …args):TReturn
Parameters
Section titled “Parameters”TContract
…TArgs
Returns
Section titled “Returns”TReturn