logoalt Hacker News

ddosmax556 • yesterday at 9:48 PM • 0 replies • view on HN

you can just to

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