@praha/byethrow
    Preparing search index...

    Type Alias Success<T>

    Represents a successful result.

    import { Result } from '@praha/byethrow';

    const success: Result.Success<number> = {
    type: 'Success',
    value: 42,
    };
    type Success<T> = {
        type: "Success";
        value: T;
    }

    Type Parameters

    • T

      The type of the successful value.

    Index

    Properties

    Properties

    type: "Success"
    value: T