feat(): updated types for batch

This commit is contained in:
JJ-Cro
2025-04-25 13:14:29 +02:00
parent 5fbe3908ce
commit 11e98c7460
3 changed files with 32 additions and 17 deletions

View File

@@ -49,10 +49,11 @@ export interface APIRateLimit {
resetAtTimestamp: number;
}
export interface APIResponseV3<T> {
export interface APIResponseV3<TResult, TExtInfo = object> {
retCode: number;
retMsg: 'OK' | string;
result: T;
result: TResult;
retExtInfo: TExtInfo;
/**
* These are per-UID per-endpoint rate limits, automatically parsed from response headers if available.
*