Umi — API References - v1.3.0
    Preparing search index...

    Function unwrapOptionRecursively

    • Recursively go through a type Tsuch that all nested Option types are unwrapped.

      For each nested Option type, if the option is a Some, it returns its value, otherwise, it returns the provided fallback value which defaults to null.

      Type Parameters

      • T

      Parameters

      • input: T

      Returns UnwrappedOption<T>

    • Recursively go through a type Tsuch that all nested Option types are unwrapped.

      For each nested Option type, if the option is a Some, it returns its value, otherwise, it returns the provided fallback value which defaults to null.

      Type Parameters

      • T
      • U

      Parameters

      • input: T
      • fallback: () => U

      Returns UnwrappedOption<T, U>