Skip to content

Commit eb7b40d

Browse files
authored
Merge pull request #1006 from reduckted/type-declarations
Add Type Declarations
2 parents e4caa67 + f487c8e commit eb7b40d

24 files changed

+3646
-1351
lines changed

README.md

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -57,10 +57,6 @@ Note that by default, we permit HTML, SVG **and** MathML. If you only need HTML,
5757
const clean = DOMPurify.sanitize(dirty, { USE_PROFILES: { html: true } });
5858
```
5959

60-
### Where are the TypeScript type definitions?
61-
62-
They can be found here: [@types/dompurify](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/dompurify)
63-
6460
### Is there any foot-gun potential?
6561

6662
Well, please note, if you _first_ sanitize HTML and then modify it _afterwards_, you might easily **void the effects of sanitization**. If you feed the sanitized markup to another library _after_ sanitization, please be certain that the library doesn't mess around with the HTML on its own.

0 commit comments

Comments
 (0)