diff --git a/index.d.ts b/index.d.ts index 8e256538..17398d33 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 bd453e97..2f9f39f2 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();