UNPKG

@dossierhq/core

Version:

The core Dossier library used by clients and server alike, used to interact with schema and entities directly, as well as remotely through a client.

10 lines 390 B
/// <reference types="./Asserts.d.ts" /> export function assertIsDefined(val) { if (val === undefined || val === null) { throw new Error(`Expected 'val' to be defined, but received ${val === undefined ? 'undefined' : 'null'}`); } } export function assertExhaustive(param) { throw new Error(`Invalid exhaustiveness check: ${param}`); } //# sourceMappingURL=Asserts.js.map