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

    Type Alias BranchExec<T, R>

    Represents a branching execution structure that allows conditional logic based on a value of type T. The then method specifies the action to perform if the condition is true, and the else method specifies the action to perform if the condition is false.

    type BranchExec<T, R> = {
        then: (
            onTrue: (val?: T) => R,
        ) => { else: (onFalse: (val?: T) => R) => R };
    }

    Type Parameters

    • T

      The type of the input value used in the branching logic.

    • R

      The type of the result returned by the branching logic.

    Index

    Properties

    Properties

    then: (onTrue: (val?: T) => R) => { else: (onFalse: (val?: T) => R) => R }