UNPKG

runtypes

Version:

Runtime validation for static types

5 lines (4 loc) 235 B
import Runtype from "./Runtype.js"; import FAILURE from "./utils-internal/FAILURE.js"; const Never = Runtype.create(({ received, expected }) => FAILURE.NOTHING_EXPECTED({ expected, received }), { tag: "never" }); export default Never;