dahlia / fedify

ActivityPub server framework in TypeScript
https://fedify.dev/
MIT License
493 stars 19 forks source link

Better runtime type error messages #79

Closed dahlia closed 3 months ago

dahlia commented 3 months ago

For now, Fedify depends on the strong assumption that everyone uses TypeScript and no values with wrong types are passed to the parameters. However, even for someone who uses TypeScript, sometimes values with wrong types can be passed to the parameters (due to any keyword or forced casting using as keyword). For such cases, we should provide better runtime type error messages.