UNPKG
ai-horde
Version:
latest (0.2.1)
0.2.1
0.2.0
0.1.0
seikho/ai-horde
ai-horde
/
dist
/
request.d.ts
9 lines
(8 loc)
•
257 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
export
declare
function
post<T =
any
>({ url, apikey, body }:
PostReq
):
Promise
<T>;
export
declare
function
get<T =
any
>({ url, apikey }:
Omit
<
PostReq
,
'body'
>):
Promise
<T>;
type
PostReq
= {
url
:
string
;
apikey
?:
string
;
body
:
any
; };
export
{};