near / fast-auth-signer

https://fast-auth-signer.vercel.app
MIT License
29 stars 8 forks source link

[TECH DEBT] Typescript missconfiguration #143

Open Pessina opened 6 months ago

Pessina commented 6 months ago

I have a function explicitly defined to return either an object or undefined. However, TypeScript seems to ignore the undefined part, indicating that only an object can be returned. This could hide potential issues, as I might try to access a property on an object that could actually be undefined.

Function docs: Image

Function definition: Image