leizongmin / js-xss

Sanitize untrusted HTML (to prevent XSS) with a configuration specified by a Whitelist
http://jsxss.com
Other
5.16k stars 633 forks source link

How to use this packages in typescript project. #288

Open sheikharifulislam opened 3 months ago

sheikharifulislam commented 3 months ago

I want to use this package in my typescript project. How I will use this?

axe312ger commented 2 months ago

Yes something is off. There are types but my TS (5) complains about no types existing :(

Edit:

My quick and dirty hack... I copied the file node_modules/xss/typings/xss.d.ts to my projects typings folder. TS is happy now. I can continue :)