fix types

This commit is contained in:
xion 2025-03-21 01:31:47 +08:00
parent 49241a67f2
commit 17dbc08c69

View File

@ -18,13 +18,13 @@ export type QueryOpts = {
headers?: Record<string, string>; headers?: Record<string, string>;
timeout?: number; timeout?: number;
}; };
type Data = { export type Data = {
path?: string; path?: string;
key?: string; key?: string;
payload?: Record<string, any>; payload?: Record<string, any>;
[key: string]: any; [key: string]: any;
}; };
type Result<S = any> = { export type Result<S = any> = {
code: number; code: number;
data?: S; data?: S;
message?: string; message?: string;