'Share TS types between Node.js(express) and React Native?

i have 2 separate projects(repositories)

/projects
 
-/Server/
--/Server/package.json
--/Server/tsconfig.json
--/Server/types/RestApiTypes.ts
 
-/React-Native/
--/React-Native/package.json
--/React-Native/tsconfig.json
--/React-Native/App.tsx

I want to use types from RestApiTypes.ts in App.tsx without building a monorepo(as i heard this is a PITA for RN).
As i understand i cannot use TS mapping because of different paths for different files in /React-native/ folder.
How can i simply do this having the autocomplete and autoimport and not turning /projects into a repository?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source