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

fix: global type conflict for telegram miniapps #26

Merged
merged 3 commits into from
Dec 5, 2024
Merged

Conversation

Ho3einWave
Copy link
Member

This pull request to lib/components/Swap/Swap.tsx includes several changes aimed at code consistency and type safety improvements. The most important changes include converting double quotes to single quotes for consistency, updating the global Window interface, and ensuring type safety when accessing the Telegram object.

Code consistency improvements:

  • Converted all double quotes to single quotes throughout the file for string literals. [1] [2] [3] [4]

Type safety improvements:

  • Updated the global Window interface to a new NewWindow interface with an optional Telegram property.
  • Ensured type safety when accessing the Telegram object by casting window to NewWindow.

@Ho3einWave Ho3einWave merged commit 7924f77 into main Dec 5, 2024
1 check passed
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.

1 participant