Watts-Lab / researcher-portal

deliberation lab collaborator tools
0 stars 0 forks source link

Add typescript typing for components #43

Closed JamesPHoughton closed 1 month ago

JamesPHoughton commented 1 month ago

As a developer, I want to use all the code improvement and robustness tools at my disposal so that my code has fewer bugs and is easier to maintain.

TS rules are currently throwing a fit because we don't specify types for components. Should we use typescript or not?

Pros:

Cons:

Based on this, and the fact that we have ai tools to help us learn to add types, we decided to commit to typescript more broadly in the project.

First steps:

We will try and reuse types created in the validators for some of the more complex objects. This is a separate piece of work tracked here: https://github.com/Watts-Lab/researcher-portal/issues/44

evanping commented 1 month ago

46