UNPKG

ts-cast

Version:
4 lines (3 loc) 262 B
import { Predicate } from './types'; export declare const toBe: <T>(predicate: Predicate<T>, errorMessage?: string) => (value: T) => string | null; export declare const notToBe: <T>(predicate: Predicate<T>, errorMessage?: string) => (value: T) => string | null;