Skip to content

fix(tempo): export portable chain types#4647

Merged
jxom merged 1 commit into
mainfrom
jxom/fix-tempo-portable-chain-types
May 19, 2026
Merged

fix(tempo): export portable chain types#4647
jxom merged 1 commit into
mainfrom
jxom/fix-tempo-portable-chain-types

Conversation

@jxom
Copy link
Copy Markdown
Member

@jxom jxom commented May 19, 2026

Tempo chain definitions now expose the minimal Tempo-specific types TypeScript needs from viem/chains. The viem-local transaction types use deprecated z_ exports for inference plumbing, while the external ox symbols remain direct deprecated exports because TS2742 does not accept aliased wrappers for them.

This keeps inferred exported Tempo chains portable for declaration emit without adding local wrapper types in tempo/Transaction or chainConfig.

Validated with pnpm exec biome check --write src/chains/index.ts, pnpm clean && pnpm build:types, and a packed external declaration-emitting consumer that reproduced the TS2742 failure.

@changeset-bot
Copy link
Copy Markdown

changeset-bot Bot commented May 19, 2026

🦋 Changeset detected

Latest commit: be889f0

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

This PR includes changesets to release 1 package
Name Type
viem 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

@vercel
Copy link
Copy Markdown

vercel Bot commented May 19, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
viem Ready Ready Preview, Comment May 19, 2026 5:39am

Request Review

@pkg-pr-new
Copy link
Copy Markdown

pkg-pr-new Bot commented May 19, 2026

Open in StackBlitz

npm i https://pkg.pr.new/viem@4647

commit: be889f0

@jxom jxom merged commit 423131d into main May 19, 2026
33 checks passed
@jxom jxom deleted the jxom/fix-tempo-portable-chain-types branch May 19, 2026 05:42
@github-actions github-actions Bot mentioned this pull request May 19, 2026
@tmm tmm mentioned this pull request May 26, 2026
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.

1 participant