Creates an Optional.Some containing the given value.
The type of the value.
The value to wrap in an Optional.Some.
An Optional.Some containing the value.
const someValue = Optional.some({ id: 1 });const noneValue = Optional.none;assert.ok(Optional.isSome(someValue));assert.ok(Optional.isNone(noneValue)); Copy
const someValue = Optional.some({ id: 1 });const noneValue = Optional.none;assert.ok(Optional.isSome(someValue));assert.ok(Optional.isNone(noneValue));
Creates an Optional.Some containing the given value.