For my TypeScript project, I am attempting to utilize the XSLTProcessor class but encountering an error:
[ts] Cannot find name 'XSLTProcessor'.
I noticed that this class is defined in lib.es6.d.ts
.
Within my configuration, I have specified:
...
"module": "commonjs",
"target": "es6",
"lib": [
"es6"
],
...
Although I am new to the world of JavaScript/TypeScript, if TypeScript is a superset of JS, why am I unable to use something available in JavaScript?
How can I instruct TypeScript to recognize and use this particular class?