UNPKG

scrivito

Version:

Scrivito is a professional, yet easy to use SaaS Enterprise Content Management Service, built for digital agencies and medium to large businesses. It is completely maintenance-free, cost-effective, and has unprecedented performance and security.

8 lines (5 loc) 213 B
import { InternalError } from 'scrivito_sdk/common'; export function assumePresence<T>(value: T | undefined | null): T { if (value === undefined || value === null) throw new InternalError(); return value; }