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: add long types declaration locally so we dont have to rely on remote declaration #2697

Merged
merged 3 commits into from
Dec 6, 2024

Conversation

ivaylonikolov7
Copy link
Contributor

Description:
Adds types/long.d.ts due to the transpiler not being able to find the default Long type. We already use allowSyntheticDefaultImports property but if I try to import only the type of long using typedef {import("long")} it will transpile the code to typedef {import("long")}.default inside the .d.ts files in the SDK. This will show an error. I try to circumvent this error by importing the Long class declaration locally. I think it might have something to do with the way they export the Long class. Similar issues has been raised here and here.

Checklist

  • Documented (Code comments, README, etc.)
  • Tested (unit, integration, etc.)

Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech>
Copy link
Contributor

@ivaylogarnev-limechain ivaylogarnev-limechain left a comment

Choose a reason for hiding this comment

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

LGTM

Signed-off-by: Ivaylo Nikolov <ivaylo.nikolov@limechain.tech>
Signed-off-by: ivaylogarnev-limechain <ivaylo.garnev@limechain.tech>
Copy link

sonarqubecloud bot commented Dec 6, 2024

@ivaylogarnev-limechain ivaylogarnev-limechain merged commit addc3c5 into main Dec 6, 2024
8 checks passed
@ivaylogarnev-limechain ivaylogarnev-limechain deleted the feat/long-example branch December 6, 2024 10:24
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