API response and data types

Generic types for API responses and common patterns

interface APIResponse<T> {
    data: T;
    meta?: ResponseMeta;
}

Type Parameters

  • T = any

Hierarchy (view full)

Properties

Properties

data: T