UNPKG

ow

Version:

Function argument validation for humans

31 lines (30 loc) 642 B
import type { Main } from '../index.js'; /** @hidden */ export declare const testSymbol: unique symbol; /** @hidden */ export declare const optionalSymbol: unique symbol; /** @hidden */ export declare const nullableSymbol: unique symbol; /** @hidden */ export declare const absentSymbol: unique symbol; /** @hidden */ export declare const isPredicate: (value: unknown) => value is BasePredicate; /** @hidden */ export type BasePredicate<T = unknown> = { [optionalSymbol]?: boolean; [nullableSymbol]?: boolean; [absentSymbol]?: boolean; [testSymbol](value: T, main: Main, label: string | Function, idLabel?: boolean): void; };