Skip to content

Add platformFetch to PlatformConfig#580

Merged
seveibar merged 1 commit intomainfrom
codex/add-platformfetch-to-platformconfig
Feb 4, 2026
Merged

Add platformFetch to PlatformConfig#580
seveibar merged 1 commit intomainfrom
codex/add-platformfetch-to-platformconfig

Conversation

@seveibar
Copy link
Contributor

@seveibar seveibar commented Feb 4, 2026

Motivation

  • Expose a fetch-compatible hook on the platform configuration so consumers can provide a platform-specific fetch implementation for network requests.

Description

  • Added platformFetch?: typeof fetch to the PlatformConfig TypeScript interface in lib/platformConfig.ts.
  • Added a Zod validator platformFetch and included it in the exported platformConfig schema to validate the optional platformFetch property.
  • Regenerated documentation artifacts to include the new option in README.md and generated/PROPS_OVERVIEW.md.
  • Formatted the repo sources.

Testing

  • Ran the docs/generator scripts: bun scripts/generate-component-types.ts, bun scripts/generate-manual-edits-docs.ts, bun scripts/generate-readme-docs.ts, and bun scripts/generate-props-overview.ts, all of which completed successfully.
  • Type-checked the project with bunx tsc --noEmit, which succeeded.
  • Ran formatting with bun run format, which succeeded.

Codex Task

@seveibar seveibar merged commit 66f8798 into main Feb 4, 2026
5 checks passed
@seveibar seveibar deleted the codex/add-platformfetch-to-platformconfig branch February 4, 2026 19:44
@tscircuitbot
Copy link
Contributor


Thank you for your contribution! 🎉

PR Rating: ⭐⭐
Impact: Minor

Track your contributions and see the leaderboard at: tscircuit Contribution Tracker


Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants