There's a lot of stuff that needs fixing before we start talking about extra stuff like enums.
For example some objects require inputs as strings rather than numbers, and some that don't care what you put into them just so long as it's either a number, or has quotes.
Some objects will reject the wrong type, and some will accept it, but not work as expected.
Then functions can get ridiculous if you aren't careful and document every little thing.
Don't even get me started on the color settings...