The minimalistic document archiving platform.
export function ensureString(value: unknown): string { if (typeof value !== 'string') { throw new TypeError(`Expected a string, got ${typeof value}`); } return value; }