Skip to content

fix(string-os.org): include @cloudflare/workers-types so root typecheck passes#52

Merged
simyung-h1r merged 2 commits into
mainfrom
nova/fix-string-os-org-typecheck
Jul 8, 2026
Merged

fix(string-os.org): include @cloudflare/workers-types so root typecheck passes#52
simyung-h1r merged 2 commits into
mainfrom
nova/fix-string-os-org-typecheck

Conversation

@simyung-h1r

Copy link
Copy Markdown
Contributor

Root pnpm typecheck failed on clean main: apps/string-os.org/functions/_middleware.ts (Cloudflare Pages middleware from the CF migration) uses PagesFunction/EventContext/AnalyticsEngineDataset, but the app tsconfig never loaded @cloudflare/workers-types — the package was already in devDependencies, just not in compilerOptions.types.

Types-only change as requested. Verified: npx tsc --noEmit in the app passes, npx astro build still builds, and root pnpm typecheck now passes across all packages.

Housekeeping follow-up from the #47 slice work. Reviewer: Leo.

🤖 Generated with Claude Code

…sses

functions/_middleware.ts (CF Pages middleware) uses PagesFunction,
EventContext, and AnalyticsEngineDataset, but the app tsconfig never
loaded @cloudflare/workers-types (already a devDependency), so root
'pnpm typecheck' failed on clean main. Types-only change.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jul 8, 2026

Copy link
Copy Markdown

Deploying string with  Cloudflare Pages  Cloudflare Pages

Latest commit: 545d33f
Status: ✅  Deploy successful!
Preview URL: https://d7eb7224.string-bm6.pages.dev
Branch Preview URL: https://nova-fix-string-os-org-typec.string-bm6.pages.dev

View logs

@cloudflare-workers-and-pages

cloudflare-workers-and-pages Bot commented Jul 8, 2026

Copy link
Copy Markdown

Deploying docs-string with  Cloudflare Pages  Cloudflare Pages

Latest commit: 545d33f
Status: ✅  Deploy successful!
Preview URL: https://2080021a.docs-string.pages.dev
Branch Preview URL: https://nova-fix-string-os-org-typec.docs-string.pages.dev

View logs

…dleware

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@simyung-h1r

Copy link
Copy Markdown
Contributor Author

Follow-up commit: apps/docs has an identical functions/_middleware.ts with the same missing types — fixed the same way. Root pnpm typecheck now genuinely passes across the whole workspace (it still failed after the first commit; verified green after this one). Both Astro apps still build.

@simyung-h1r simyung-h1r merged commit 9a7740d into main Jul 8, 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