* Creates a new `Optional ` that **does** contain a value.
(this: void, value: T)
| 36 | * Creates a new `Optional<T>` that **does** contain a value. |
| 37 | */ |
| 38 | public static some<T>(this: void, value: T): Optional<T> { |
| 39 | return new Optional(true, value); |
| 40 | } |
| 41 | |
| 42 | /** |
| 43 | * Create a new `Optional<T>` that **does not** contain a value. `T` can be |
no outgoing calls