Skip to content

Conversation

@domleboss97
Copy link
Collaborator

For packages using @agentcommercekit/vc, when the inferred return type on a function is W3CCredential, the TS compiler can't properly resolve types because the type depends on types from did-jwt-vc that we don't expose.

Exposing them doesn't make sense, since they're internal implementation details of that package. This PR defines and exports the W3CCredential type explicitly instead.

@domleboss97 domleboss97 changed the title Dominic/make w3c credential type more explicit Explicitly define W3CCredential type May 30, 2025
@domleboss97 domleboss97 merged commit 5b1c8b1 into main May 30, 2025
2 checks passed
@domleboss97 domleboss97 deleted the dominic/make-w3c-credential-type-more-explicit branch May 30, 2025 21:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants