Describe the bug
In a Agent define this method
@callable()
async getInternal() {
return this.state;
}
then in a client using useAgent try and call this:
const state = await agent.stub.getInternal();
getInternal() throws a typescript error.
if you change getInternal() to
@callable()
async getInternal() {
return "hello world";
}
it works fine.
Version:
latest