import { HardhatChaiMatchersAssertionError } from "../../errors.js"; export function assertIsNotNull( value: T, valueName: string ): asserts value is Exclude { if (value === null) { throw new HardhatChaiMatchersAssertionError( `${valueName} should not be null` ); } }