Documentation
    Preparing search index...

    Type Alias ExtractResourceType<Type>

    ExtractResourceType: Type extends Resource<
        infer R,
        infer _SearchOptions,
        infer _Protected,
    >
        ? R
        : never

    Extracts the response type from a resource

    Type Parameters

    • Type

      The resource type

    The response type

    type extracted = ExtractResourceType<Resource<{ id: number }>>;