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

Avoid using Trusted Types in value contexts #250

Merged
merged 0 commits into from
Feb 16, 2023
Merged

Conversation

copybara-service[bot]
Copy link

@copybara-service copybara-service bot commented Feb 16, 2023

Avoid using Trusted Types in value contexts

In particular, replace instanceof checks with trustedTypes.is* checks and
typeof expressions with the types themselves.

This fixes a breakage caused by
DefinitelyTyped/DefinitelyTyped#64360, which removed
the ability to use Trusted Types in value contexts.

@copybara-service copybara-service bot changed the title Avoid instanceof checks on Trusted Types Avoid using Trusted Types in value contexts Feb 16, 2023
@copybara-service copybara-service bot closed this Feb 16, 2023
@copybara-service copybara-service bot merged commit cd56470 into main Feb 16, 2023
@copybara-service copybara-service bot deleted the test_510091208 branch February 16, 2023 13:12
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.

0 participants