ts-data-forge
Version:
[](https://www.npmjs.com/package/ts-data-forge) [](https://www.npmjs.com/package/ts-data-forge) [;
*
* assert.isTrue(Optional.unwrapThrow(present) === 'available');
*
* assert.throws(
* () => Optional.unwrapThrow(Optional.none),
* /has failed because it is `None`/u,
* );
* ```
*
* @template O The `UnknownOptional` type to unwrap.
* @param optional The `Optional` to unwrap.
* @returns The contained value if `Some`.
* @throws {Error} Error with message "`unwrapThrow()` has failed because it
* is `None`" if the `Optional` is `None`.
*/
export declare const unwrapThrow: <O extends UnknownOptional>(optional: O) => Unwrap<O>;
//# sourceMappingURL=optional-unwrap-throw.d.mts.map