Rocky_Mountain_Vending/.pnpm-store/v10/files/9c/cd59d9e2deee20ac9deb651c409e596e6279858252cfe99b00111989ec4571fbe682b98514500d2e066d8cfeb6380f60cb5e4663fed8a5def7c026ece502fa
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
870 B
Text

import { async } from '../scheduler/async';
import { isValidDate } from '../util/isDate';
import { timeout } from './timeout';
export function timeoutWith(due, withObservable, scheduler) {
var first;
var each;
var _with;
scheduler = scheduler !== null && scheduler !== void 0 ? scheduler : async;
if (isValidDate(due)) {
first = due;
}
else if (typeof due === 'number') {
each = due;
}
if (withObservable) {
_with = function () { return 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: first,
each: each,
scheduler: scheduler,
with: _with,
});
}
//# sourceMappingURL=timeoutWith.js.map