earljs
Version:
Ergonomic, modern and type-safe assertion library
21 lines (20 loc) • 762 B
TypeScript
import { Expectation, ExpectationOptions } from './Expectation';
import { Matchers } from './matchers/types';
import { DynamicMatcher } from './plugins/types';
export interface Expect extends Matchers {
/**
* The `expect` function is used every time you want to test a value.
*
* @param actual - the value to match against.
* @param options - optional configuration.
*/
<T>(actual: T, options?: ExpectationOptions): Expectation<T>;
}
/**
* The `expect` function is used every time you want to test a value.
*
* @param actual - the value to match against.
* @param options - optional configuration.
*/
export declare const expect: Expect;
export declare function loadMatchers(matchers: Record<string, DynamicMatcher>): void;