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

    Type Alias DefaultReturnCase<R>

    Represents the default case in a switch-like structure, with a return value of type R. This case is executed if none of the other cases match.

    type DefaultReturnCase<R> = {
        default: true;
        operation: () => R;
    }

    Type Parameters

    • R

      The type of the return value from the operation.

    Index

    Properties

    Properties

    default: true

    A flag to indicate that this is the default case.

    operation: () => R

    The function to execute when the default case is selected, returning a value of type R.