Try to use ts-morph to read models and their properties instead of manually going through the file as plaintext. https://ts-morph.com