UNPKG

@twurple/common

Version:

Common functions used by the `@twurple` library family.

9 lines (8 loc) 237 B
import { RelationAssertionError } from "./errors/RelationAssertionError.mjs"; /** @private */ export function checkRelationAssertion(value) { if (value == null) { throw new RelationAssertionError(); } return value; }