Function createCompiledResult

  • Helper function for extracting the value from a compiled result { Ok: T } or { Err: E }

    Type Parameters

    • T

    Parameters

    • result: T

      The compiled result to extract from.

    Returns types.CompiledResult<T>

    A CompiledResult object indicating success or failure.