You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After upgrading to "@aries-framework/core": "^0.3.1" the types on Agents credentials are resulting into any.
Looking at the migration docs from 0.2.X to 0.3.X I couldn't find any changes regarding to credentials.
Reproduce
constagent=newAgent({ config,dependencies: agentDependencies})awaitagent.credentials// typed as `any`
The text was updated successfully, but these errors were encountered:
That's definitely a bug, thanks for reporting @baristikir!
I could reproduce it locally. One workaround you can use for now is adding an empty modules key to the agent constructor, that seemed to resolve the issue. I'll dig into it more, but for now that should do the trick:
constagent=newAgent({dependencies: agentDependencies,config: {label: 'hello'},modules: {}})agent.credentials// correctly typed with {} for modules
Overview
After upgrading to
"@aries-framework/core": "^0.3.1"
the types on Agentscredentials
are resulting intoany
.Looking at the migration docs from 0.2.X to 0.3.X I couldn't find any changes regarding to
credentials
.Reproduce
The text was updated successfully, but these errors were encountered: