Skip to content
New issue

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

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

Already on GitHub? # to your account

messages: CommonJS require to TypeScript import #525

Merged
merged 1 commit into from
May 16, 2024

Conversation

Mersho
Copy link
Contributor

@Mersho Mersho commented May 15, 2024

This commit completes the TypeScript conversion 1 by replacing
the CommonJS require syntax with TypeScript's import syntax.

@knocte
Copy link
Contributor

knocte commented May 15, 2024

There was already a messages.ts file, so it was already TypeScript. Please explain what this PR is doing then?

@Mersho Mersho changed the title Convert messages to TS (5th commit of PR435) fixing types & import/exports of messages.ts (5th commit of PR435) May 15, 2024
@knocte
Copy link
Contributor

knocte commented May 15, 2024

Mersho changed the title Convert messages to TS (5th commit of PR435) to fixing types & import/exports of messages.ts (5th commit of PR435).

"Fixing types & import/exports" is not enough explanation. What are you fixing?

This commit completes the TypeScript conversion [1] by replacing
the CommonJS `require` syntax with TypeScript's `import` syntax.

[1]: lnp2pBot#435
@Mersho Mersho force-pushed the ConvertJsToTs-messages branch from ecde801 to 488d5e9 Compare May 15, 2024 11:07
@Mersho Mersho changed the title fixing types & import/exports of messages.ts (5th commit of PR435) Change messages.ts require to TypeScript import (5th commit of PR435) May 15, 2024
@Mersho
Copy link
Contributor Author

Mersho commented May 15, 2024

"Fixing types & import/exports" is not enough explanation. What are you fixing?

@knocte Hey, thank you for noticing, I edited the PR title and the commit message, is everything all right now?

@Mersho Mersho changed the title Change messages.ts require to TypeScript import (5th commit of PR435) messages: CommonJS require to TypeScript import May 15, 2024
@knocte
Copy link
Contributor

knocte commented May 15, 2024

LGTM

Copy link
Member

@grunch grunch left a comment

Choose a reason for hiding this comment

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

LGTM!! 🚀

@grunch grunch merged commit ee4281c into lnp2pBot:main May 16, 2024
4 checks passed
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants