We use primitives in the plugin (String, Boolean, Number, BigInt) with a starting uppercase.
While it can be okay for TS as it replicates them in an interface, they're not considered as true primitives by TypeScript.
It causes some problems for the numbers, if you try to add two numbers with a Number type, TS will not understand it.
As it's inconsistent and not true primitives, we should remove them from the array and maybe throw an error.
Please note: these are used for the events too, but we already type the primitives as lowercase in this case.
We use primitives in the plugin (
String
,Boolean
,Number
,BigInt
) with a starting uppercase. While it can be okay for TS as it replicates them in an interface, they're not considered as true primitives by TypeScript. It causes some problems for the numbers, if you try to add two numbers with aNumber
type, TS will not understand it. As it's inconsistent and not true primitives, we should remove them from the array and maybe throw an error.Please note: these are used for the events too, but we already type the primitives as lowercase in this case.