cure53 / DOMPurify

DOMPurify - a DOM-only, super-fast, uber-tolerant XSS sanitizer for HTML, MathML and SVG. DOMPurify works with a secure default, but offers a lot of configurability and hooks. Demo:
https://cure53.de/purify
Other
14.12k stars 733 forks source link

fix: mark createDOMPurify param as optional #1028

Closed MiniDigger closed 1 week ago

MiniDigger commented 1 week ago

Summary

this PR properly marks the createDOMPurify/DOMPurify ctor param as optional, since it has a default defined. it also documents said default.

Background & Context

this broke my build when updating ^^ thanks for taking the time to add types tho, one less @types package :)

Tasks

none

Dependencies

none