Closed sentilesdal closed 6 months ago
Currently the index.d.ts file lives in the types/ directory. Auto-import for IDEs will then try to import ttag function from 'ttag/types'. When building this package for npm, the types file should be copied to be a sibling of the main index.js file.
Yes, let's fix it, having import { t } from 'ttag/types' as auto import is bad
import { t } from 'ttag/types'
done in 1.8.6 :heavy_check_mark:
1.8.6
Currently the index.d.ts file lives in the types/ directory. Auto-import for IDEs will then try to import ttag function from 'ttag/types'. When building this package for npm, the types file should be copied to be a sibling of the main index.js file.