Initial commit - Event Planner application
This commit is contained in:
11
node_modules/kysely/dist/esm/util/assert.js
generated
vendored
Normal file
11
node_modules/kysely/dist/esm/util/assert.js
generated
vendored
Normal file
@@ -0,0 +1,11 @@
|
||||
/// <reference types="./assert.d.ts" />
|
||||
export function assertNotNullOrUndefined(value) {
|
||||
if (value === null || value === undefined) {
|
||||
throw new Error(`${value} must not be null or undefined`);
|
||||
}
|
||||
}
|
||||
export function assertIsString(value) {
|
||||
if (typeof value !== 'string') {
|
||||
throw new Error(`${value} must be a string`);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user