HarmonizedOutput<T>: {
    data: T;
}

The harmonized output type that wraps the data returned from the provider client.

Type Parameters

  • T

Type declaration

  • data: T

Remarks

This type is used to wrap the data returned from the provider client in a unified format, so that the consumer can expect the same output format from all provider clients extending the index.HarmonizedClient | HarmonizedClient.

Example

type MyEntry = {
title: string;
description: string;
}

const entry = await client.getEntry<MyEntry>({ entryId: '123' });
console.log(entry); // { data: { title: 'My title', description: 'My description' } }

Generated using TypeDoc