UNPKG

option-t

Version:

A toolkit of Nullable/Option/Result type implementation in ECMAScript. Their APIs are inspired by Rust's `Option<T>` and `Result<T, E>`.

6 lines (5 loc) 173 B
import type { Option } from './option.js'; /** * Flatten the inner value of _input_. */ export declare function flattenForOption<T>(input: Option<Option<T>>): Option<T>;