Skip to content

refactor: drop the last two any casts - #50

Merged
adacapo21 merged 1 commit into
mainfrom
fix/drop-any-casts
Aug 21, 2026
Merged

refactor: drop the last two any casts#50
adacapo21 merged 1 commit into
mainfrom
fix/drop-any-casts

Conversation

@adacapo21

Copy link
Copy Markdown
Member

This was a commit on the #48 branch that missed the merge by a few minutes — pushed just after #48 was merged, so it stayed behind. Re-applied on current main.

  • src/cli/setup.ts read the existing MCP server entries as Record<string, any> to reach .env.BLOCKFROST_API_KEY. The file already defines a ServerConfig interface, and Partial<ServerConfig> types that access exactly.
  • src/payment.ts cast the server to any when handing it to wrapWithSplitPayment, which takes the same McpServer type the file already imports. The cast was not needed; tsc is happy without it.

eslint src reports no warnings after this, where it previously reported these two. Typecheck and tests clean.

setup.ts read the existing MCP server entries as Record<string, any> to
reach `.env.BLOCKFROST_API_KEY`; the file already has a ServerConfig
interface, and Partial<ServerConfig> types that access exactly.

payment.ts cast the server to `any` when handing it to wrapWithSplitPayment,
which takes the same McpServer type this file imports — the cast was not
needed and tsc is happy without it.

eslint is now clean with no warnings.
@adacapo21
adacapo21 merged commit eb5c719 into main Aug 21, 2026
3 checks passed
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