guardz
Version:
A simple and lightweight TypeScript type guard library for runtime type validation.
12 lines (11 loc) • 502 B
TypeScript
import { TypeGuardFn } from '../typeguards/isType';
/**
* Returns the display name of a type guard for error messages (e.g. isStringGuard -> isString).
*/
export declare const getTypeGuardDisplayName: (typeGuardFn: TypeGuardFn<any>) => string;
/**
* Get the expected type name from a type guard function
* @param typeGuardFn - The type guard function to analyze
* @returns The expected type name as a string
*/
export declare const getExpectedTypeName: (typeGuardFn: TypeGuardFn<any>) => string;