offensive
Version:
Fast and boilerplate-free precondition checks for javascript.
24 lines (23 loc) • 802 B
TypeScript
import { Assertion, ContractFunction } from '../../model';
import { InnerExpression } from '../../Builder';
import '../anArray';
import '../../connectors';
/**
* @author Maciej Chałapuk (maciej@chalapuk.pl)
*/
export declare class ElementThatAssertion<T> implements Assertion<T> {
private elementIndex;
private innerAssert;
constructor(elementIndex: number, innerAssert: InnerExpression);
assert(varName: string, testedValue: T, contract: ContractFunction): {
readonly success: boolean;
readonly message: import("../../model").Message;
};
}
export declare namespace ElementThatAssertion {
/**
* @author Maciej Chałapuk (maciej@chalapuk.pl)
*/
function factory(args: any[]): ElementThatAssertion<unknown>;
}
export default ElementThatAssertion;