I am trying to write a server and I keeping typescript error that I cannot supress:
As you can see I already try to use ts-ignore but it does not supress the error, what am I doing wrong?
Here is my code:
// @ts-ignore
const ⛄ = (fn) => {
return (req, res, next) => {
return fn(req, res, next).catch((err) => {
return next(err);
});
};
};
EDIT: Yes, this Unicode is valid Javascript variable name: EDIT 2: Apparently ⛄ is not valid, alrighty then.