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 bd453e9..2f9f39f 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();