• Preparing search index...
  • The search index is not available
Solana JavaScript SDK
  • Solana JavaScript SDK
  • @solana/options
  • unwrapOptionRecursively

Function unwrapOptionRecursively

  • unwrapOptionRecursively<T>(input: T): UnwrappedOption<T>
  • Recursively go through a type T such 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>

    • Defined in packages/options/src/unwrap-option-recursively.ts:53
  • unwrapOptionRecursively<T, U>(
        input: T,
        fallback: () => U,
    ): UnwrappedOption<T, U>
  • Recursively go through a type T such 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>

    • Defined in packages/options/src/unwrap-option-recursively.ts:54

Settings

Member Visibility
Solana JavaScript SDK
  • Loading...

Generated using TypeDoc