Skip to content

Remove Nonce #2111

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

Open
wants to merge 2 commits into
base: main
Choose a base branch
from
Open

Remove Nonce #2111

wants to merge 2 commits into from

Conversation

Bashamega
Copy link
Contributor

@Bashamega Bashamega commented Aug 7, 2025

No description provided.

Copy link
Contributor

github-actions bot commented Aug 7, 2025

Thanks for the PR!

This section of the codebase is owned by @saschanaz - if they write a comment saying "LGTM" then it will be merged.

@@ -16385,7 +16385,7 @@ interface HTMLOrSVGElement {
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/dataset) */
readonly dataset: DOMStringMap;
/** [MDN Reference](https://developer.mozilla.org/docs/Web/API/HTMLElement/nonce) */
nonce?: string;
nonce?: string | undefined;
Copy link
Contributor Author

Choose a reason for hiding this comment

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

This is how the emitter handles optional properties, and I don't see an issue with this

@saschanaz
Copy link
Contributor

saschanaz commented Aug 7, 2025

The original PR introduced it is #626

Which links to microsoft/TypeScript#28452

At this point everyone supports nonce and thus we should just remove it from overridingTypes.jsonc.

(This is why additional comments with context would be helpful for each patching)

@Bashamega Bashamega changed the title Use KDL for nonce Remove KDL Aug 8, 2025
@Bashamega
Copy link
Contributor Author

Thank you for your review @saschanaz
I have updated it

@Bashamega Bashamega changed the title Remove KDL Remove Nonce Aug 8, 2025
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