Skip to content

Move to a better type system #1448

Description

@81reap

Currently the front-end is a bunch of JavaScript files typed with JSDoc which has limitations such as ::

  1. Doesn't allow for new features to be added easily add @legacy tag jsdoc/jsdoc#2139
  2. Doesn't support negative numbers JSDOC cannot parse negative numbers in type expressions. jsdoc/jsdoc#2131 and a fix has been open for a while now feature: update parser to allow negative numbers hegemonic/catharsis#76

If we switch the frontend over to Typescript, it will cost us a build step but we gain ::

  1. shared types between test and prod
  2. being able to import dependency types like ApexCharts
  3. having a build system handle compression and optimizations, so maintainers can freely write code in inefficient but more readable ways
  4. moving the front end 3rd party dependices out of the rust build step and into the typescript build step

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions