mirror of
https://git.sfja.dk/Mikkel/slige.git
synced 2025-01-30 22:30:54 +00:00
10 lines
231 B
TypeScript
10 lines
231 B
TypeScript
export function todo<T>(msg?: string): T {
|
|
class NotImplemented extends Error {}
|
|
throw new NotImplemented(msg);
|
|
}
|
|
|
|
export function exhausted(_: never) {
|
|
class Unexhausted extends Error {}
|
|
throw new Unexhausted();
|
|
}
|