title: Share interfaces between API and frontend
body: <p>I am developing both sides. An API is in nest.js and frontend in Angular. Both sides uses typescript and I am facing problem of sharing interfaces, that should be same. For example ILoginRequest and ILoginResponse. I want to have both projects in separate GIT Repositories. Should I use GIT submodule with 3rd shared GIT repo or somehow create shared npm package or is there some good tool to generate classes automatically (from swagger definition) into frontend or anything else?</p>
  <p>EDIT: to generate code for client from swagger, look at <a href="https://github.com/OpenAPITools/openapi-generator" rel="nofollow noreferrer">openapi-generator</a></p>