import type { NonNullish } from './prelude.js' const nonNullish = (value: T): NonNullish => { if (value == null) { throw new TypeError('Expected defined.') } return value as NonNullish } export default nonNullish