function myFunction(identifier: string) {
identifier = "(";
};
let identifier: string = ")";
if (identifier !== '(')
throw "Expected '(' in function";
myFunction(identifier);
if (identifier !== ')')
throw "Expected ')' in function";
If I make the change directly within the code, the error mentioned below does not occur
error TS2365: Operator '!==' cannot be used with types '"("' and '")"'.
The actual strings being compared are interchangeable. Any arbitrary strings like a, basdasd, cqwe, etc. can replace ( and )