Replies: 1 comment
-
Related #4017 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
I was wondering the best approach to share models' types with the frontend.
I was thinking to export a models.ts inside the contracts folder and write it as follows:
this would be shared as an npm package, but since i would use Lerna it would be easier.
Since it is the first time i share typescript BE models to the FE i was wondering if this made any sense.
Maybe there is a builtin way to do this, so I wanted to make sure.
Beta Was this translation helpful? Give feedback.
All reactions