Skip to content

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

Description

@JacksonSamuel42

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);

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions