Enums : DeviceType
csv
CONSOLE, DESKTOP, EMBEDDED, MOBILE, SMARTTV, TABLET, WEARABLE, XR
INFO
See list of possible device type here.
Code Example
js
import { UAParser } from 'ua-parser-js';
import { DeviceType } from 'ua-parser-js/enums';
if (UAParser().device.is(DeviceType.SMARTTV)) {
console.log('Some big display here');
}