tsd-check
Version:
Check TypeScript type definitions
13 lines (12 loc) • 323 B
TypeScript
/**
* Assert the type of the value.
*
* @param value - Value that should be type checked.
*/
export declare const expectType: <T>(value: T) => void;
/**
* Assert the value to throw an argument error.
*
* @param value - Value that should be checked.
*/
export declare const expectError: <T = any>(value: T) => void;