How to resolve ‘Assertions require every name in the call target to be declared with an explicit type annotation.ts(2775)’?

Cause

For anyone seeing this, if you have written your own assert function, keep in mind that TypeScript cannot use arrowFunctions for assertions.

See https://github.com/microsoft/TypeScript/issues/34523

Fix

Change your assert function from an arrowFunction to standard function.

Leave a Comment

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)