js-stellar-sdk icon indicating copy to clipboard operation
js-stellar-sdk copied to clipboard

JSDoc/TSDoc from`js-stellar-base` does not properly show up

Open mootz12 opened this issue 2 months ago • 0 comments

When using any exports defined in js-stellar-base like nativeToScVal, the JSDoc/TSDoc does not appear when importing from js-stellar-sdk.

For example:

import { nativeToScVal } from '@stellar/stellar-sdk';

const test = nativeToScVal("1234567", { type: 'i128' })

here is the tooltip on hover:

(alias) nativeToScVal(val: any, opts?: {
    type: any;
} | undefined): xdr.ScVal
import nativeToScVal

and the source on go to impl:

export function scValToBigInt(scv: xdr.ScVal): bigint;
export function nativeToScVal(val: any, opts?: { type: any }): xdr.ScVal;
export function scValToNative(scv: xdr.ScVal): any;

mootz12 avatar Nov 13 '25 00:11 mootz12