Skip to content

JSDoc/TSDoc fromjs-stellar-base does not properly show upΒ #1277

@mootz12

Description

@mootz12

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;

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

Status

Todo (Ready for Dev)

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions