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

make typescript compile #20

Merged
merged 2 commits into from
Mar 4, 2024
Merged

make typescript compile #20

merged 2 commits into from
Mar 4, 2024

Conversation

michaelglass
Copy link
Collaborator

@michaelglass michaelglass commented Mar 4, 2024

npx tsc now compiles the chat widget

@michaelglass michaelglass marked this pull request as ready for review March 4, 2024 08:37
@michaelglass michaelglass marked this pull request as draft March 4, 2024 08:49
@michaelglass michaelglass force-pushed the chat-widget-typescript branch from 8582f73 to 017654c Compare March 4, 2024 09:21
@michaelglass michaelglass marked this pull request as ready for review March 4, 2024 09:21
@michaelglass michaelglass mentioned this pull request Mar 4, 2024
@michaelglass michaelglass requested a review from jakub-nlx March 4, 2024 09:29
@peterszerzo
Copy link
Collaborator

@michaelglass there is indeed something strange going on here that we should look into, what strikes me off the bat is that the regular tsc binary is suggesting fixes that don't look right (Theme from @emotion/react when what we intend to use is the local custom Theme). Conversely, if I make what I think is a legitimate type error, rollup alerts me as it should.

Can we move this PR into draft?

@michaelglass michaelglass marked this pull request as draft March 4, 2024 10:47
@michaelglass michaelglass force-pushed the chat-widget-typescript branch from 017654c to 0145251 Compare March 4, 2024 11:18
@michaelglass michaelglass marked this pull request as ready for review March 4, 2024 11:18
@@ -1,9 +1,10 @@
{
"compilerOptions": {
"target": "es6",
"module": "esnext",
"module": "nodenext",
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

this is the meat of this change. Unclear to me why targeting esnext won't pull in types.d.ts but it apparently doesn't :-/

@michaelglass michaelglass force-pushed the chat-widget-typescript branch from 0145251 to 4f0aa89 Compare March 4, 2024 11:32
@michaelglass michaelglass removed the request for review from jakub-nlx March 4, 2024 11:38
@michaelglass michaelglass requested a review from jakub-nlx March 4, 2024 11:41
@peterszerzo peterszerzo merged commit c76dbed into main Mar 4, 2024
1 check passed
@peterszerzo peterszerzo deleted the chat-widget-typescript branch March 4, 2024 11:43
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