todo
Marks a code path you intend to implement later and throws if execution reaches it.
Usage
todo(message?)
Use todo as an explicit, type-safe placeholder while work is incomplete. Its never return type allows it in any expression position, but it always throws at runtime. Use unimplemented for intentionally unsupported behavior and unreachable for logically impossible paths.
Parameters
messagestringoptional
optional context appended to the thrown error message.
Returns
never returns; the function always throws.
Throws
An Error with not yet implemented, optionally followed by message.
See also
unimplemented— intentionally unsupported behaviorunreachable— logically impossible behavior