This repository has been archived by the owner on Feb 22, 2023. It is now read-only.
Create a ~/types
directory to store shared types and move types out of ~/models
into the new directory
#1161
Labels
🤖 aspect: dx
Concerns developers' experience with the codebase
🧰 goal: internal improvement
Improvement that benefits maintainers, not users
🟩 priority: low
Low priority and doesn't need to be rushed
⌨️ tech: typescript
Requires familiarity with TypeScript
Problem
We've been putting most of the shared types for the app into the
~/stores/types.ts
module. This module is getting long and complicated. It'd be nice to split it into smaller modules and place them in a top-level~/types
directory.Description
Split
~/stores/types.ts
into several smaller modules placed in a new~/types
directory. Additionally export types from an~/types/index.ts
so that it's easy to import types from a single import instead of having to reach for the specific module.As @dhruvkb pointed out there is an already existing
~/models
directory. The types from there should be moved into~/types
and merged with the other types.Implementation
The text was updated successfully, but these errors were encountered: