Parser-JavaScript
Parser-JavaScript copied to clipboard
device.identified is an integer
It looks like device.identified is an integer, not a boolean, as it says in the ReadMe. Is there any significance to the number?
"device": {
"type": "gaming",
"subtype": "console",
"identified": 4,
"generic": false,
"hidden": false,
"manufacturer": "Sony",
"model": "PlayStation 4",
"series": null,
"carrier": null,
"identifier": null
},
Hello, you are correct. The integer come from this mapping src/constants/id.js. You can still threat it as a boolean since 0 and undefined means not identified while any other integer means identified.
I will however change the typings and the Readme.