From 1bde6c6c7e3f2dd2c79eb0b596f7944bf49d9178 Mon Sep 17 00:00:00 2001 From: dingyongliang Date: Tue, 14 Jul 2020 15:04:07 +0800 Subject: [PATCH] Update @returns of Parser.prototype.parse --- index.d.ts | 3 ++- src/parser.js | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/index.d.ts b/index.d.ts index 8e25653..17398d3 100644 --- a/index.d.ts +++ b/index.d.ts @@ -130,9 +130,10 @@ declare namespace Bowser { /** * Parse full information about the browser + * @returns {Parser.Parser} */ - parse(): void; + parse(): Parser.Parser; /** * Get parsed browser object diff --git a/src/parser.js b/src/parser.js index 2fcfcab..7ada932 100644 --- a/src/parser.js +++ b/src/parser.js @@ -313,6 +313,7 @@ class Parser { /** * Parse full information about the browser + * @returns {Parser} */ parse() { this.parseBrowser();