-
Notifications
You must be signed in to change notification settings - Fork 189
Expand file tree
/
Copy pathindex.d.ts
More file actions
30 lines (27 loc) · 848 Bytes
/
index.d.ts
File metadata and controls
30 lines (27 loc) · 848 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
// TypeScript Version: 2.2
/**
* UMD export
*/
export as namespace WPAPI;
export = WPAPI;
declare class WPAPI {
constructor(options: any);
auth(credentials: any): any;
bootstrap(routes: any): any;
namespace(namespace: any): any;
registerRoute(namespace: any, restBase: any, options: any): any;
root(relativePath: any): any;
setHeaders(headers: any, value: any): any;
transport(transport: any): any;
url(url: any): any;
static discover(url: any): any;
static site(endpoint: any, routes: any): any;
}
declare namespace WPAPI {
namespace transport {
function get(wpreq: any, callback: any): any;
function head(wpreq: any, callback: any): any;
function post(wpreq: any, data: any, callback: any): any;
function put(wpreq: any, data: any, callback: any): any;
}
}