Compilation error : TS2693: 'string' only refers to a type, but is being used as a value here.
PadBol76 opened this issue · comments
PadBol76 commented
Hello,
Thanks a lot for this module !
We use this module in our project and TS compilation found 4 errors.
You will find the lines concerned below :
To resolve the problem in our project we added this in tsconfig.json :
"compilerOptions": {
...
"skipLibCheck": true
}
Best regards.
Vasil Dimitrov commented
Hey @PadBol76, what version of TS do you run?
PadBol76 commented
We run it with TS 3.7.3
Vasil Dimitrov commented
I see, the template literal type was introduced in v4 so if you upgrade your TS you wont get the error anyl onger.