Skip to content
This repository was archived by the owner on Apr 18, 2026. It is now read-only.

fix: export CreateAbstractClientParameters and CreateSessionClientParameters types#412

Merged
coffeexcoin merged 2 commits intoAbstract-Foundation:mainfrom
vikions:fix/export-client-parameter-types
Mar 17, 2026
Merged

fix: export CreateAbstractClientParameters and CreateSessionClientParameters types#412
coffeexcoin merged 2 commits intoAbstract-Foundation:mainfrom
vikions:fix/export-client-parameter-types

Conversation

@vikions
Copy link
Copy Markdown
Contributor

@vikions vikions commented Mar 17, 2026

Summary

Public factory functions createAbstractClient and createSessionClient are exported, but their parameter types are not — making it impossible for consumers to properly type wrapper functions without Parameters<typeof createAbstractClient> workarounds.

This adds the missing type exports following the existing pattern in the codebase.

Changes

  • clients/abstractClient.ts: export CreateAbstractClientParameters
  • clients/sessionClient.ts: export CreateSessionClientParameters
  • exports/index.ts: re-export CreateAbstractClientParameters
  • exports/sessions.ts: re-export CreateSessionClientParameters

Risk

Additive only. No runtime changes — types are erased at compile time.


PR-Codex overview

This PR focuses on exporting the CreateAbstractClientParameters and CreateSessionClientParameters types from the agw-client package, enhancing type visibility for better usage in other parts of the codebase.

Detailed summary

  • Added export for CreateSessionClientParameters in sessionClient.ts.
  • Added export for CreateAbstractClientParameters in abstractClient.ts.
  • Updated index.ts to export both types.
  • Imported CreateSessionClientParameters in sessions.ts.

✨ Ask PR-Codex anything about this PR by commenting with /codex {your question}

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented Mar 17, 2026

🦋 Changeset detected

Latest commit: 4f5cb2a

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 4 packages
Name Type
@abstract-foundation/agw-client Patch
@abstract-foundation/agw-react Patch
@abstract-foundation/agw-web Patch
@abstract-foundation/web3-react-agw Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@cursor
Copy link
Copy Markdown

cursor Bot commented Mar 17, 2026

PR Summary

Low Risk
Additive type-only exports to improve consumer typing; no runtime logic changes, so impact is limited to TypeScript API surface/compatibility.

Overview
Exports the previously internal parameter types for the public factory functions createAbstractClient and createSessionClient.

CreateAbstractClientParameters is now exported and re-exported from the main entrypoint, and CreateSessionClientParameters is exported and re-exported from the sessions entrypoint, with a changeset for a patch release.

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

@coffeexcoin coffeexcoin merged commit 69bce9e into Abstract-Foundation:main Mar 17, 2026
5 checks passed
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants