We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
If I call const data=agent.getProfile({ actor: agent.did }); Then I expect this call to return true AppBskyActorProfile.isRecord(data)
const data=agent.getProfile({ actor: agent.did });
AppBskyActorProfile.isRecord(data)
It doesn't. data contains the fields you would expect, but the code generated for isRecord expects a type$ member:
export function isRecord(v: unknown): v is Record { return ( isObj(v) && hasProp(v, '$type') && (v.$type === 'app.bsky.actor.profile#main' || v.$type === 'app.bsky.actor.profile') ) }
Note: I'm new to atproto development - give serious consideration to me having just missed the point!
The text was updated successfully, but these errors were encountered:
No branches or pull requests
If I call
const data=agent.getProfile({ actor: agent.did });
Then I expect this call to return true
AppBskyActorProfile.isRecord(data)
It doesn't. data contains the fields you would expect, but the code generated for isRecord expects a type$ member:
Note: I'm new to atproto development - give serious consideration to me having just missed the point!
The text was updated successfully, but these errors were encountered: