feat: add TypeScript definitions for UAParser.js enums (#772)

Introduce TypeScript type definitions for UAParser.js version 2.0.0. 
This enhances type safety and autocompletion for enums related to 
browsers, CPUs, devices, vendors, engines, and operating systems in 
the project. These changes are made to improve developer experience 
and ensure consistent usage of the enums throughout the codebase.
This commit is contained in:
Mike
2024-12-10 03:23:01 -08:00
committed by GitHub
parent bb1daf4e13
commit f854f26cd6
2 changed files with 366 additions and 0 deletions

View File

@@ -80,6 +80,7 @@ const Browser = Object.freeze({
KLARNA: 'Klarna',
KINDLE: 'Kindle',
LENOVO: 'Smart Lenovo Browser',
LADYBIRD: 'Ladybird',
LIBREWOLF: 'LibreWolf',
LIEBAO: 'LBBROWSER',
LINE: 'Line',
@@ -217,6 +218,7 @@ const Vendor = Object.freeze({
GEEKSPHONE: 'GeeksPhone',
GENERIC: 'Generic',
GOOGLE: 'Google',
HMD: 'HMD',
HP: 'HP',
HTC: 'HTC',
HUAWEI: 'Huawei',
@@ -326,6 +328,7 @@ const OS = Object.freeze({
IOS: 'iOS',
JOLI: 'Joli',
KAIOS: 'KaiOS',
KUBUNTU: 'Kubuntu',
LINPUS: 'Linpus',
LINSPIRE: 'Linspire',
LINUX: 'Linux',