Skip to content

Fix typechecking in six GCP TypeScript examples - #2994

Merged
pose merged 1 commit into
pose/gcp-v9-examplesfrom
pose/gcp-ts-examples-typecheck
Sep 2, 2026
Merged

Fix typechecking in six GCP TypeScript examples#2994
pose merged 1 commit into
pose/gcp-v9-examplesfrom
pose/gcp-ts-examples-typecheck

Conversation

@pose

@pose pose commented Sep 2, 2026

Copy link
Copy Markdown
Member

Six of the GCP TypeScript examples failed tsc. All six now pass, verified by typechecking every GCP TypeScript example in the repo with no regressions.

Two are not purely mechanical. gcp-ts-gke-serviceaccount had "n1-standard-1" || config.get("machineType"), which is backwards, so the machineType config key was silently ignored; reversing it makes that key take effect. In gcp-ts-slackbot the express import sits inside a closure that gets serialized into a Cloud Function, so it uses import express = require("express"); a default import would compile to __importDefault(...) and hand the closure serializer a synthetic wrapper rather than a module reference.

These are typecheck-only fixes. None of the six has integration test coverage, so none is verified at pulumi up. That gap is #2993. The two remaining failures are multicloud and out of scope here, tracked in #2992.

Stacked on #2991; retarget to master once that merges.

Part of #2993

Part of #2993

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0189zT7gdmHRM8ntk8N3h9Uj
@pose
pose requested a review from a team September 2, 2026 10:01
@pose pose self-assigned this Sep 2, 2026
@pose pose added this to the 0.140 milestone Sep 2, 2026
@pose
pose merged commit a4c6bce into pose/gcp-v9-examples Sep 2, 2026
2 checks passed
@pose
pose deleted the pose/gcp-ts-examples-typecheck branch September 2, 2026 10:11
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.

2 participants