ow
Version:
Function argument validation for humans
21 lines (20 loc) • 457 B
TypeScript
import type { Main } from '../index.js';
/**
@hidden
*/
export declare const testSymbol: unique symbol;
/**
@hidden
*/
export declare const optionalSymbol: unique symbol;
/**
@hidden
*/
export declare const isPredicate: (value: unknown) => value is BasePredicate<unknown>;
/**
@hidden
*/
export type BasePredicate<T = unknown> = {
[optionalSymbol]?: boolean;
[testSymbol](value: T, main: Main, label: string | Function, idLabel?: boolean): void;
};