UNPKG

e2ed

Version:

E2E testing framework over Playwright

10 lines (9 loc) 471 B
import type { LogParams } from '../../types/internal'; /** * Asserts that the value is defined (is not `undefined`). */ export declare function assertValueIsDefined<Type>(value: Type, check: string, payload?: LogParams): asserts value is Exclude<Type, undefined>; /** * Asserts that the value is `undefined` (is not defined). */ export declare function assertValueIsUndefined<Type>(value: Type, check: string, payload?: LogParams): asserts value is Type & undefined;