Rocky_Mountain_Vending/.pnpm-store/v10/files/8b/bcf078f94d77fcca2b26a3d80d301d3e24b8ba5cb5a80843b8b2f249902dd8f3f0bb86a73dfaa4f953748888a367ad8c777193e5bad65dee8610dbbe6f4794
DMleadgen 46d973904b
Initial commit: Rocky Mountain Vending website
Next.js website for Rocky Mountain Vending company featuring:
- Product catalog with Stripe integration
- Service areas and parts pages
- Admin dashboard with Clerk authentication
- SEO optimized pages with JSON-LD structured data

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-02-12 16:22:15 -07:00

31 lines
No EOL
828 B
Text

import { async } from '../scheduler/async';
import { isValidDate } from '../util/isDate';
import { timeout } from './timeout';
export function timeoutWith(due, withObservable, scheduler) {
let first;
let each;
let _with;
scheduler = scheduler !== null && scheduler !== void 0 ? scheduler : async;
if (isValidDate(due)) {
first = due;
}
else if (typeof due === 'number') {
each = due;
}
if (withObservable) {
_with = () => withObservable;
}
else {
throw new TypeError('No observable provided to switch to');
}
if (first == null && each == null) {
throw new TypeError('No timeout provided.');
}
return timeout({
first,
each,
scheduler,
with: _with,
});
}
//# sourceMappingURL=timeoutWith.js.map