Feature Description
Types.tsx needs to be removed, BUT there are caveats
Requirements
Remember: Types.tsx may have been called in some places as an import. You can replace the calls with ../../types.
Check types.ts and Types.tsx to see if there needs to be information transferred from Types.tsx to types.ts before removal.
Additional context
Having two Types files is a bad idea.
You can import .ts files by calling their name without needing to include .ts
../ makes the computer look backwards in the file path, so if I wanted to import types.ts into ATC-Patient-Data/employee/profile, I would need to call ../ twice to go back twice. Keep track of how many folders you have to access before importing types.ts
Feature Description Types.tsx needs to be removed, BUT there are caveats
Requirements Remember: Types.tsx may have been called in some places as an import. You can replace the calls with
../../types
. Check types.ts and Types.tsx to see if there needs to be information transferred from Types.tsx to types.ts before removal.Additional context Having two Types files is a bad idea. You can import .ts files by calling their name without needing to include .ts
../
makes the computer look backwards in the file path, so if I wanted to import types.ts intoATC-Patient-Data/employee/profile
, I would need to call../
twice to go back twice. Keep track of how many folders you have to access before importingtypes.ts