Closed marekdedic closed 3 years ago
Hi, I am using xss in code intended to run in the browser (so no import or require...). I'm trying to get the following to work:
xss
import
require
/// <reference types="xss" /> declare function xssOptions(): xss.IFilterXSSOptions;
However, I'm getting error TS2503: Cannot find namespace 'xss'. Is this an issue with the typings? Or am I using it wrong?
error TS2503: Cannot find namespace 'xss'.
Thanks!
try use upper case XSS:
XSS
declare function xssOptions(): XSS.IFilterXSSOptions;
Oh, thanks, that works...
Hi, I am using
xss
in code intended to run in the browser (so noimport
orrequire
...). I'm trying to get the following to work:However, I'm getting
error TS2503: Cannot find namespace 'xss'.
Is this an issue with the typings? Or am I using it wrong?Thanks!