Skip to content

chore: export additional types#134

Merged
MoMannn merged 2 commits intomainfrom
chore-type-exports
Jan 21, 2026
Merged

chore: export additional types#134
MoMannn merged 2 commits intomainfrom
chore-type-exports

Conversation

@MoMannn
Copy link
Contributor

@MoMannn MoMannn commented Jan 20, 2026

📝 Description

Added type exports for PermissionRequestParameter and Erc7715Client to improve developer experience when working with ERC-7715 permissions API.

🔄 What Changed?

  • Exported PermissionRequestParameter type - the single item type from RequestExecutionPermissionsParameters array
  • Added new Erc7715Client type for typing viem clients extended with erc7715ProviderActions()

🚀 Why?

  • PermissionRequestParameter: Previously only the array type RequestExecutionPermissionsParameters was exported. Developers needed access to the single item type when building individual permission objects.
  • Erc7715Client: When using extend(erc7715ProviderActions()) with immediate assignment, TypeScript infers the type correctly. However, when declaring a variable before assignment (e.g., let client = null), there was no exported type to annotate it with. This enables:
    let client: Erc7715Client | null = null;
    
    function setupClient() {
      client = createWalletClient({...}).extend(erc7715ProviderActions());
    }

🧪 How to Test?

Describe how to test these changes:

  • Manual testing steps:
  1. Use the types
  • Automated tests added/updated
  • All existing tests pass

⚠️ Breaking Changes

List any breaking changes:

  • No breaking changes
  • Breaking changes (describe below):

📋 Checklist

Check off completed items:

  • Code follows the project's coding standards
  • Self-review completed
  • Documentation updated (if needed)
  • Tests added/updated
  • Changelog updated (if needed)
  • All CI checks pass

🔗 Related Issues

Link to related issues:
Closes #
Related to #

📚 Additional Notes

Any additional information, concerns, or context:


Note

Adds missing type exports to improve typing around ERC-7715 actions.

  • Export PermissionRequestParameter from erc7715RequestExecutionPermissionsAction via src/actions/index.ts
  • Introduce Erc7715Client type (a Client extended with erc7715ProviderActions) with usage docs in comments
  • Update CHANGELOG.md under Unreleased to reflect the new exports

Written by Cursor Bugbot for commit 7d9e57e. This will update automatically on new commits. Configure here.

@MoMannn MoMannn requested a review from a team as a code owner January 20, 2026 11:15
@MoMannn MoMannn merged commit 1285f83 into main Jan 21, 2026
17 checks passed
@MoMannn MoMannn deleted the chore-type-exports branch January 21, 2026 09:00
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.

2 participants