From d337cc5fc506e03e6cd2205709d3ad6b35eb03f2 Mon Sep 17 00:00:00 2001 From: Guo Yunhe Date: Sat, 17 Mar 2018 22:51:05 +0200 Subject: [PATCH] wpapi: discover() should be static function --- types/wpapi/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/wpapi/index.d.ts b/types/wpapi/index.d.ts index 309b613599..62d4583042 100644 --- a/types/wpapi/index.d.ts +++ b/types/wpapi/index.d.ts @@ -25,7 +25,7 @@ declare class WPAPI { * * @param url A URL within a REST API-enabled WordPress website */ - discover(url: string): Promise; + static discover(url: string): Promise; /** Start a request against /categories endpoint */ categories(): WPAPI.WPRequest;