Rocky_Mountain_Vending/.pnpm-store/v10/files/62/ef19dd9916c27986ce258e133f77eee074ce401be9e68791167ca7c9c786e524e0f62a95c6a061c36dfb33bb407b666476a25ad71aa0461f0e675b79536401
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

25 lines
No EOL
1,000 B
Text

// Copyright 2020 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
/**
* This is useful to keep TypeScript happy in a test - if you have a value
* that's potentially `null` you can use this function to assert that it isn't,
* and satisfy TypeScript that the value is present.
*/
export function assertNotNullOrUndefined(val, message) {
if (val === null || val === undefined) {
throw new Error(`Expected given value to not be null/undefined but it was: ${val}${message ? `\n${message}` : ''}`);
}
}
export function assertNever(_type, message) {
throw new Error(message);
}
/**
* This is useful to check on the type-level that the unhandled cases of
* a switch are exactly `T` (where T is usually a union type of enum values).
* @param caseVariable
*/
export function assertUnhandled(_caseVariable) {
return _caseVariable;
}
//# sourceMappingURL=TypescriptUtilities.js.map