Closed asamuzaK closed 1 week ago
Adding
type DOMSelector
toexport {}
fixed it.
I think you made a typo and meant type DOMPurify
?
Adding
type DOMSelector
toexport {}
fixed it.I think you made a typo and meant
type DOMPurify
?
Yes, it's typo. I've already fixed the title. Thanks.
Background & Context
With DOMPurify@3.2.0, I got the following error when creating
d.ts
of my project:In
dist/purify.es.d.mts
,type DOMPurify
is not exported.dist/purify.es.d.mts#L399:
Adding
type DOMSelector
toexport {}
fixed it.dist/purify.es.d.mts#L399:
Feature
I think this is because DOMPurify is not exported in
src/purify.ts
src/purify.ts#L1680:
Add
export
should fix this.src/purify.ts#L1680:
I'll send a PR.