Optionalcontract: TContract | ConstructorFor<TContract>Registers a callback for a bare call (no arguments).
The callback to be executed when a bare call is detected.
Registers a callback for a bare call (no arguments).
The callback to be executed when a bare call is detected.
The
onproperty is a proxy that allows you to register callbacks for specific method signatures. It dynamically creates methods based on the contract's methods.