diff --git a/index.d.ts b/index.d.ts index 052bfd5..fbfa7d2 100644 --- a/index.d.ts +++ b/index.d.ts @@ -120,18 +120,21 @@ declare namespace useragent { /** @deprecated */ patch: string; + brand: string; + + model: string; + /** * The representation of a parsed Device. + * * @param [family='Other'] The name of the device - * @param [major='0'] Major version of the device - * @param [minor='0'] Minor version of the device - * @param [patch='0'] Patch version of the device + * @param [brand='Other'] The brand of the device + * @param [model='Other'] The model of the device */ constructor( family?: string, - major?: string, - minor?: string, - patch?: string + brand?: string, + model?: string ); /** @@ -149,6 +152,8 @@ declare namespace useragent { */ toJSON(): { family: string; + brand: string; + model: string; major: string | undefined; minor: string | undefined; patch: string | undefined; diff --git a/index.js b/index.js index dc6e819..97a734c 100644 --- a/index.js +++ b/index.js @@ -282,9 +282,8 @@ OperatingSystem.prototype.toJSON = function toJSON(){ * * @constructor * @param {String} family The name of the device - * @param {String} major Major version of the device - * @param {String} minor Minor version of the device - * @param {String} patch Patch version of the device + * @param {String} brand The brand of the device + * @param {String} model The model of the device * @api public */ function Device(family, brand, model) { @@ -609,4 +608,4 @@ function replace(str, matches) { replacement = replacement.replace(sub[0], matches[sub[1]]) } return replacement; -} \ No newline at end of file +}