Skip to content

Data type normalization (long-term effort) #86

@pklaschka

Description

@pklaschka

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions