UNPKG
node-ttv
Version:
latest (2.1.0)
2.1.0
2.0.0
1.0.4
1.0.3
1.0.2
1.0.1
1.0.0
A Node.js wrapper for Twitch.tv's helix API.
node-ttv
/
dist
/
util
/
webRequest.d.ts
10 lines
(9 loc)
•
273 B
TypeScript
View Raw
1
2
3
4
5
6
7
8
9
10
export
{ webRequest };
export
declare
enum
Method
{
GET
=
"GET"
,
POST
=
"POST"
,
PUT
=
"PUT"
,
PATCH
=
"PATCH"
,
DELETE
=
"DELETE"
}
declare
function
webRequest
(
hostname
:
string
,
path
:
string
,
postData
:
any
,
headers
:
any
,
method
:
Method
):
Promise
<
string
>;