Options
All
  • Public
  • Public/Protected
  • All
Menu

@ruffy/ts-optional

Index

Classes

Variables

Functions

Variables

Const none

none: None = None.nil

Represents undefined.

Functions

optional

  • optional<T>(value: T | undefined): Optional<T>
  • Returns the value wrapped in Optional

    Type parameters

    • T

    Parameters

    • value: T | undefined

    Returns Optional<T>

some

  • some<T>(value: T): Some<T>
  • Returns the value wrapped in Some.

    Type parameters

    • T: NonNullable<any>

    Parameters

    • value: T

    Returns Some<T>

Generated using TypeDoc