1
0
mirror of https://github.com/lancedikson/bowser synced 2026-03-02 03:40:27 +00:00

Merge pull request #427 from YongliangDing/declaration-update

Update @returns of Parser.prototype.parse
This commit is contained in:
Denis Demchenko
2020-09-12 10:35:50 +03:00
committed by GitHub
2 changed files with 3 additions and 1 deletions

3
index.d.ts vendored
View File

@@ -130,9 +130,10 @@ declare namespace Bowser {
/** /**
* Parse full information about the browser * Parse full information about the browser
* @returns {Parser.Parser}
*/ */
parse(): void; parse(): Parser.Parser;
/** /**
* Get parsed browser object * Get parsed browser object

View File

@@ -313,6 +313,7 @@ class Parser {
/** /**
* Parse full information about the browser * Parse full information about the browser
* @returns {Parser}
*/ */
parse() { parse() {
this.parseBrowser(); this.parseBrowser();