Skip to content

Support TypeScript for React components#12696

Merged
turt2live merged 2 commits intodevelopfrom
travis/typescript-2
Mar 12, 2020
Merged

Support TypeScript for React components#12696
turt2live merged 2 commits intodevelopfrom
travis/typescript-2

Conversation

@turt2live
Copy link
Copy Markdown
Member

@turt2live turt2live force-pushed the travis/typescript-2 branch from cc86cb2 to 798d4da Compare March 12, 2020 00:25
@turt2live turt2live requested a review from t3chguy March 12, 2020 00:25
@turt2live turt2live merged commit 296e701 into develop Mar 12, 2020
@turt2live turt2live deleted the travis/typescript-2 branch March 12, 2020 00:36
Comment thread package.json
"@babel/register": "^7.7.4",
"@babel/runtime": "^7.7.6",
"@types/react": "^16.9.17",
"@types/react": "16.9",
Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Why is this no longer a caret dependency (also on matrix-org/matrix-react-sdk#4203)?

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

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

because yarn is awful for two reasons: it doesn't default to caret when installing things, and we should be pinning our types to our react version. 16.9 still gets resolved the same as 16.9.x, which is compatible with carets.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

So 16.9, ^16.9 ^16.9.0 all get resolved differently? Also, if this is the correct treatment for @types/react, should @types/react-dom below also be updated?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

t3chguy added a commit that referenced this pull request Oct 17, 2024
…2696)

Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
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.

3 participants