Skip to content

Conversation

mksotto
Copy link

@mksotto mksotto commented Oct 10, 2025

Prerequisites

Type of Change

Typescript bug fix

Description

According to the documentation, the IDevice type should not include 'desktop' as a valid value. I've removed this property from the DeviceType object in ./src/enums/ua-parser-enums.js and updated the corresponding TypeScript definition files.

Test

All unit tests passed.

Impact

This change may affect users who were previously using 'desktop' as a device type value in their TypeScript code. However, since this value is not officially supported according to the documentation, these users were likely relying on incorrect type definitions. The update brings TypeScript definitions in line with the actual library behavior and documented specifications.

Users who were incorrectly using 'desktop' will now get TypeScript errors, guiding them to use the officially supported device types instead.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant