1
0
Fork 0
mirror of https://github.com/classchartsapi/classcharts-api-js.git synced 2026-05-14 11:58:13 +00:00

fix: improve readability of typing

This commit is contained in:
James Cook 2023-04-29 23:34:36 +01:00
parent 2cfacc1c1f
commit d752eed8bd

View file

@ -1,12 +1,12 @@
/* eslint-disable @typescript-eslint/no-explicit-any */
/**
* Helper type to define response from classcharts
* Helper type to define response from ClassCharts
* @internal
*/
export type ClassChartsResponse<T, E> = {
data: T;
meta: E;
export type ClassChartsResponse<Data, Error> = {
data: Data;
meta: Error;
error?: string;
success: number;
};