UNPKG

ts-cast

Version:
4 lines (3 loc) 226 B
import { Predicate } from '../rules'; import { CasterFn, Guard } from './types'; export declare const toBe: <T, S extends T>(casterFn: CasterFn<T>, predicate: Predicate<T> | Guard<T, S>, typeName?: string) => CasterFn<T | S>;