codediodeio / angular-firestarter

🍱 :fire: Angular + Firebase Progressive Web App Starter
https://firestarter.fireship.io/
956 stars 437 forks source link

Sharing types between the main application and functions #82

Open ghost opened 4 years ago

ghost commented 4 years ago

Once interfaces ( or other entities ) have been defined inside the main application /src/** and imported from within /functions --> import { InterfaceTest } from '../../src/app/path';, where the path resolves to a file within a sibling of /functions, the folder structure of compiled output generated by tsc in the /functions folder changes to reflect the "touched" structure of the imports from /src/app.

Is there a method i'm missing for using types within both projects? Aside from adding more build steps or a type file.