• Creates a standardized success response

    Type Parameters

    • T = any

    Parameters

    • data: any = null

      The data to include in the success response

    Returns SuccessResponse<T>

    SuccessResponse object with the data and null error

    const result = success({ id: '123', name: 'John' });
    // Result: { data: { id: '123', name: 'John' }, error: null }