Skip to main content
Version: 5.x.x

Response Type

Response type defines the data that will be returned to us from the server


Example

type ResponseType = Array<{
name: string;
email: string;
age: number;
}>;

const getUsers = client.createRequest<ResponseType>()({
endpoint: "/users",
});