Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Export TransRenderProps from @lingui/react #877

Merged
merged 1 commit into from
Nov 22, 2020

Conversation

MartinCerny-awin
Copy link
Contributor

Fixing this error

⋊> /V/s/t/web on master ⨯ npx tsc                                                                                                                                                                                                                                             16:24:19
node_modules/@lingui/macro/index.d.ts:3:15 - error TS2305: Module '"../react/cjs"' has no exported member 'TransRenderProps'.

3 import type { TransRenderProps } from "@lingui/react"
                ~~~~~~~~~~~~~~~~


Found 1 error.

How can I verify index.d.ts is correctly setup? In my IDE I only see Could not find a declaration file for module '@lingui/react'
Screenshot 2020-11-21 at 16 43 15

@vercel
Copy link

vercel bot commented Nov 21, 2020

This pull request is being automatically deployed with Vercel (learn more).
To see the status of your deployment, click below or on the icon next to each commit.

🔍 Inspect: https://vercel.com/lingui-js/js-lingui/ce44wplqq
✅ Preview: https://js-lingui-git-transrrenderprops.lingui-js.now.sh

@codecov
Copy link

codecov bot commented Nov 21, 2020

Codecov Report

Merging #877 (d0bab82) into main (a53e12f) will increase coverage by 0.09%.
The diff coverage is 50.00%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #877      +/-   ##
==========================================
+ Coverage   82.76%   82.85%   +0.09%     
==========================================
  Files          51       51              
  Lines        1427     1435       +8     
  Branches      392      394       +2     
==========================================
+ Hits         1181     1189       +8     
  Misses        145      145              
  Partials      101      101              
Impacted Files Coverage Δ
...ackages/babel-plugin-extract-messages/src/index.ts 82.11% <50.00%> (-2.24%) ⬇️
packages/core/src/dev/loadLocaleData.ts 100.00% <0.00%> (+100.00%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update b603626...d0bab82. Read the comment docs.

Copy link
Contributor

@tricoder42 tricoder42 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good point, thanks! 👍

@tricoder42 tricoder42 merged commit 3db9d6b into lingui:main Nov 22, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants