fieldnotesai
    Preparing search index...

    Type Alias ServiceResult<T>

    ServiceResult:
        | { data: T; ok: true }
        | {
            message?: string;
            ok: false;
            reason: "not_found" | "network" | "unknown";
        }

    Provides functionality for service result.

    Type Parameters

    • T