const warnValue = TernaryResult.warn('ok', 'careful');
const okValue = TernaryResult.ok('ok');
assert.strictEqual(TernaryResult.unwrapWarn(warnValue), 'careful');
// eslint-disable-next-line @typescript-eslint/no-confusing-void-expression
assert.strictEqual(TernaryResult.unwrapWarn(okValue), undefined);
Safely unwraps the Warn value.