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:
parent
2cfacc1c1f
commit
d752eed8bd
1 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||||
};
|
};
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue