Lingui supports typescript types out of the box since version
Macros types in non-React environments
Since the opening of this issue we investigated that macros can be used on Typescript environments where React isn't required.
Now we're shipping two declaration types:
global.d.tsfiles with just
Now you can modify your
tsconfig.json in your root directory and reference the global file: