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>;
timeout?: number;
};
type Data = {
export type Data = {
path?: string;
key?: string;
payload?: Record<string, any>;
[key: string]: any;
};
type Result<S = any> = {
export type Result<S = any> = {
code: number;
data?: S;
message?: string;