Currently, the UXP JS API references don't follow a standard when it comes to declaring data types. A few examples of various ways things are notated in the docs (and, "as the root", the corresponding JS type):
number
int
integer
number
Number
Integer
string
string
String
Promise<void>
(no type specified at all, "in lieu of" void)
Promise
void
While this will be a big effort to fix, it currently
can cause a lot of confusion ("Is there a difference between these?")
disallows for any automated processing (e.g., to generate TypeScript definitions from it)
makes the documentation seem much less consistent (and thus, subjectively, harder to work with)
Currently, the UXP JS API references don't follow a standard when it comes to declaring data types. A few examples of various ways things are notated in the docs (and, "as the root", the corresponding JS type):
number
int
integer
number
Number
Integer
string
string
String
Promise<void>
void
)Promise
void
While this will be a big effort to fix, it currently