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

    Type Alias SwitchReturnCase<T, R>

    Represents a case in a switch-like structure where a specific value is matched and returns a result of type R when the operation is executed.

    type SwitchReturnCase<T, R> = {
        operation: () => R;
        value: T;
    }

    Type Parameters

    • T

      The type of the value to be checked.

    • R

      The type of the return value from the operation.

    Index

    Properties

    Properties

    operation: () => R

    The function to execute when this case is matched, returning a value of type R.

    value: T

    The value to be checked against.