default: {
toBeEither: (
actual: unknown,
) => { message: () => string; pass: boolean };
toBeLeft: (
actual: Either<unknown, unknown>,
) => { message: () => string; pass: boolean };
toBeRight: (
actual: Either<unknown, unknown>,
) => { message: () => string; pass: boolean };
toEqualLeft: <L>(
actual: Either<L, unknown>,
expected: AsymmetricMatcher | L,
) => {
actual: Either<L, unknown>;
expected: AsymmetricMatcher | L;
message: () => string;
pass: boolean;
};
toEqualRight: <R>(
actual: Either<unknown, R>,
expected: AsymmetricMatcher | R,
) => {
actual: Either<unknown, R>;
expected: AsymmetricMatcher | R;
message: () => string;
pass: boolean;
};
toMatchLeft: {
(actual: Either<string, unknown>, expected: RegExp): any;
<L>(actual: Either<L, unknown>, expected: Partial<L>): any;
};
toMatchRight: {
(actual: Either<unknown, string>, expected: RegExp): any;
<R>(actual: Either<unknown, R>, expected: Partial<R>): any;
};
}
Type declaration
toBeEither: (actual: unknown) => { message: () => string; pass: boolean }
toBeLeft: (actual: Either<unknown, unknown>) => { message: () => string; pass: boolean }
toBeRight: (actual: Either<unknown, unknown>) => { message: () => string; pass: boolean }
toEqualLeft: <L>(
actual: Either<L, unknown>,
expected: AsymmetricMatcher | L,
) => {
actual: Either<L, unknown>;
expected: AsymmetricMatcher | L;
message: () => string;
pass: boolean;
}
toEqualRight: <R>(
actual: Either<unknown, R>,
expected: AsymmetricMatcher | R,
) => {
actual: Either<unknown, R>;
expected: AsymmetricMatcher | R;
message: () => string;
pass: boolean;
}
toMatchLeft: {
(actual: Either<string, unknown>, expected: RegExp): any;
<L>(actual: Either<L, unknown>, expected: Partial<L>): any;
}
toMatchRight: {
(actual: Either<unknown, string>, expected: RegExp): any;
<R>(actual: Either<unknown, R>, expected: Partial<R>): any;
}