playwright-pom-materials
Version:
Playwright POM materials
14 lines (13 loc) • 647 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.isRetryAttemptOptions = exports.isRetryUntilTimeoutOptions = void 0;
const isRetryUntilTimeoutOptions = (x) => {
return (typeof x === 'object' && x !== null && x.timeout !== undefined // eslint-disable-line @typescript-eslint/no-explicit-any
);
};
exports.isRetryUntilTimeoutOptions = isRetryUntilTimeoutOptions;
const isRetryAttemptOptions = (x) => {
return (typeof x === 'object' && x !== null && x.maxAttempts !== undefined // eslint-disable-line @typescript-eslint/no-explicit-any
);
};
exports.isRetryAttemptOptions = isRetryAttemptOptions;