sanchezzzhak / node-device-detector

Universal library for detecting devices based on the string `UserAgent`. We can identify: App, Bot, OS, Browser, Device brand, Device model and Device type (smartphone, phablet, tablet, desktop, TV and other types, total 13)

Home Page:https://codesandbox.io/p/sandbox/demo-node-device-detect-forked-mwfx8e

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Error: Duplicate identifier

MickL opened this issue · comments

Getting multiple errors with the latest version:

node_modules/node-device-detector/index.d.ts:32:9 - error TS2300: Duplicate identifier 'deviceIndexes'.
node_modules/node-device-detector/index.d.ts:33:9 - error TS2300: Duplicate identifier 'deviceIndexes'.
node_modules/node-device-detector/index.d.ts:34:9 - error TS2300: Duplicate identifier 'deviceAliasCode'.
node_modules/node-device-detector/index.d.ts:35:9 - error TS2300: Duplicate identifier 'deviceAliasCode'.
node_modules/node-device-detector/index.d.ts:42:9 - error TS2300: Duplicate identifier 'deviceIndexes'.
node_modules/node-device-detector/index.d.ts:47:9 - error TS2300: Duplicate identifier 'deviceIndexes'.
node_modules/node-device-detector/index.d.ts:52:9 - error TS2300: Duplicate identifier 'deviceAliasCode'.
node_modules/node-device-detector/index.d.ts:57:9 - error TS2300: Duplicate identifier 'deviceAliasCode'.

Was working in 2.0.5 but not with 2.0.6, 2.0.7 and 2.0.8

  • I fixed it, this changes will be available in 2.0.9 tomorrow or 1-2 days later.