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);
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
BinaryLibraryin@eversdk/lib-weband@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
BinaryLibrarytypes 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);