wpapi: discover() should be static function

This commit is contained in:
Guo Yunhe
2018-03-17 22:51:05 +02:00
parent 6b7b07a0ab
commit d337cc5fc5
+1 -1
View File
@@ -25,7 +25,7 @@ declare class WPAPI {
*
* @param url A URL within a REST API-enabled WordPress website
*/
discover(url: string): Promise<WPAPI>;
static discover(url: string): Promise<WPAPI>;
/** Start a request against /categories endpoint */
categories(): WPAPI.WPRequest;