supra-ts-sdk - v2.0.0
    Preparing search index...

    Type Alias MoveResultToTS<T>

    MoveResultToTS: T extends FixedPointType
        ? { value: bigint }
        : T extends "vector<u8>"
            ? MoveToTS<T>
            : T extends `vector<${infer U}>`
                ? MoveResultToTS<U>[]
                : T extends "0x1::option::Option<u8>"
                    ? MoveToTS<T>
                    : T extends `0x1::option::Option<${infer U}>`
                        ? MoveResultToTS<U>
                        | null
                        : MoveToTS<T>

    The TypeScript type of a value of Move type T returned by a view function. A FixedPoint32 or FixedPoint64 is { value: bigint }, the raw integer value; other types are typed as MoveToTS types them.

    Type Parameters

    • T extends string