Skip to content

refactor: clean up type casting in region resolution#10504

Open
wandamora wants to merge 2 commits into
mainfrom
morawand-refactor-endpoint-types
Open

refactor: clean up type casting in region resolution#10504
wandamora wants to merge 2 commits into
mainfrom
morawand-refactor-endpoint-types

Conversation

@wandamora
Copy link
Copy Markdown
Contributor

@wandamora wandamora commented May 12, 2026

Description

Introduces a minimal interface for resolving default regions for better type-safety. This includes refactors in both prepare.ts and ailogic.ts.

@wandamora wandamora force-pushed the morawand-refactor-endpoint-types branch from 82b9be1 to 6320284 Compare May 12, 2026 23:02
Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces EventTriggerResolutionTarget and BlockingTriggerResolutionTarget interfaces to replace the use of any and complex intersection types during region resolution. Feedback identifies that BlockingTriggerResolutionTarget is missing a project property and notes an unsafe type cast to backend.Endpoint which circumvents TypeScript safety checks.

Comment thread src/deploy/functions/prepare.ts Outdated
Comment thread src/deploy/functions/prepare.ts
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