Hacker News new | ask | show | jobs
by ddosmax556 42 days ago
you can just to

    default:
        matched satisfies never
        throw new Error(...)
You don't even need a function.