export function todo(msg?: string): T { class NotImplemented extends Error {} throw new NotImplemented(msg); } export function exhausted(_: never) { class Unexhausted extends Error {} throw new Unexhausted(); }