mirror of
https://github.com/classchartsapi/classcharts-api-js.git
synced 2026-05-14 03:56:59 +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 */
|
||||
|
||||
/**
|
||||
* 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;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue