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

Type Mismatch in BinaryLibrary Promise Return Types Between @eversdk/lib-web and @eversdk/core #587

Open
JacksonSamuel42 opened this issue Jan 21, 2025 · 0 comments

Comments

@JacksonSamuel42
Copy link

Type Mismatch in BinaryLibrary Promise Return Types Between @eversdk/lib-web and @eversdk/core

Description
There is a type incompatibility between the Promise return types of BinaryLibrary in @eversdk/lib-web and @eversdk/core. The type system is not recognizing these as compatible types despite them appearing to have similar structures.

Current Behavior
When attempting to use TonClient.useBinaryLibrary(libWeb), TypeScript reports:

Argument of type '() => Promise<import("@eversdk/lib-web/index").BinaryLibrary>' is not assignable to parameter of type '() => Promise<import("@eversdk/core/dist/bin").BinaryLibrary>'.

Expected Behavior
The BinaryLibrary types from both packages should be compatible when used with TonClient.useBinaryLibrary(), as they are meant to work together as part of the same ecosystem.

Package Versions

  • @eversdk/appkit: "^0.3.8",
  • @eversdk/core: "^1.48.0"
  • @eversdk/lib-web: "^1.48.0"

Reproduction

import { TonClient } from '@eversdk/core';
import { libWeb } from '@eversdk/lib-web';
TonClient.useBinaryLibrary(libWeb);

@JacksonSamuel42 JacksonSamuel42 changed the title ### Type Mismatch in BinaryLibrary Promise Return Types Between @eversdk/lib-web and @eversdk/core Type Mismatch in BinaryLibrary Promise Return Types Between @eversdk/lib-web and @eversdk/core Jan 21, 2025
# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant