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.
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 usingas
keyword). For such cases, we should provide better runtime type error messages.