1
0
Fork 0
mirror of https://github.com/classchartsapi/classcharts-api-js.git synced 2026-05-14 19:59:37 +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 */ /* eslint-disable @typescript-eslint/no-explicit-any */
/** /**
* Helper type to define response from classcharts * Helper type to define response from ClassCharts
* @internal * @internal
*/ */
export type ClassChartsResponse<T, E> = { export type ClassChartsResponse<Data, Error> = {
data: T; data: Data;
meta: E; meta: Error;
error?: string; error?: string;
success: number; success: number;
}; };