fix types
This commit is contained in:
parent
49241a67f2
commit
17dbc08c69
@ -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;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user