why is exception thrown when declaring a builtin Set class in TSUN editor?

34 Views Asked by At

I have installed TSUN on my centos 7 machine using the command. then i open the typescript interpreter using the command tsun from the terminal . when try to declare a set it is throwing the following error .

> let pets = new Set(["Cat", "Dog", "Hamster"]);

Cannot find name 'Set'. Do you need to change your target library?  Try changing the `lib` compiler option to es2015 or later.

any help is appreciated thank you

0

There are 0 best solutions below