Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(ses): widen type of globalThis in Compartment #2644

Merged
merged 1 commit into from
Nov 22, 2024

Conversation

boneskull
Copy link
Contributor

globalThis can contain Symbol keys, so it is more correctly typed as Record<PropertyKey, any>.

This also widens the type of the globals parameter in the Compartment constructor.

`globalThis` can contain `Symbol` keys, so it is more correctly typed as `Record<PropertyKey, any>`.

This also widens the type of the `globals` parameter in the `Compartment` constructor.
@boneskull boneskull added the ses label Nov 21, 2024
@boneskull boneskull merged commit ff6a5ab into master Nov 22, 2024
15 checks passed
@boneskull boneskull deleted the boneskull/fix-compartment-globalthis-type branch November 22, 2024 01:24
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