Skip to content

fix(scripting): avoid the removed chrome Awaited alias - #41

Closed
atldays wants to merge 1 commit into
developfrom
codex/scripting-result-types
Closed

atldays wants to merge 1 commit into
developfrom
codex/scripting-result-types

Conversation

@atldays

@atldays atldays commented Nov 5, 2026

Copy link
Copy Markdown
Member

The installed @types/chrome 0.3.5 declares chrome.scripting.Awaited, but newer declarations accepted by this package's dependency range remove that alias. Packing this library and installing it into a fresh consumer then fails with TS2694.

Keep the existing one-level PromiseLike result transformation as a local conditional type. The public executeScript contract is preserved; consumer checks assert compatibility in both directions.

Validation: isolated source/test typecheck, production build and tree shaking, fresh packed ESM/CJS consumer installation and typecheck. This change is independent of the Safari API adaptations.

Preserve the existing conditional script result type locally so consumers can
install newer @types/chrome declarations without TS2694.
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