@pathmaker-digital/pmd-utilities - v2.2.6
    Preparing search index...

    Type Alias Option<T>

    Option: { kind: "some"; value: T } | { kind: "none" }

    A export type that represents an optional value.

    • Some<T>: Indicates a value is present.
    • None: Indicates the absence of a value.

    This pattern is inspired by languages like Rust and helps avoid issues with null or undefined.

    Type Parameters

    • T

      The export type of the contained value.