You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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);
The text was updated successfully, but these errors were encountered:
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
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 withTonClient.useBinaryLibrary()
, as they are meant to work together as part of the same ecosystem.Package Versions
Reproduction
import { TonClient } from '@eversdk/core';
import { libWeb } from '@eversdk/lib-web';
TonClient.useBinaryLibrary(libWeb);
The text was updated successfully, but these errors were encountered: