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

    Type Alias MoveToTSOther<T>

    MoveToTSOther: T extends "u8"
    | "u16"
    | "u32"
    | "i8"
    | "i16"
    | "i32"
        ? number
        : T extends "u64"
        | "u128"
        | "u256"
        | "i64"
        | "i128"
        | "i256"
            ? bigint
            : T extends "bool"
                ? boolean
                : T extends "signer"
                | "&signer"
                    ? SupraAccount
                    : T extends "address"
                        ? AccountAddressInput
                        : T extends "vector<u8>"
                            ? string
                            | Uint8Array
                            | ArrayBuffer
                            | number[]
                            : T extends `0x1::object::Object<${infer _U}>`
                                ? AccountAddressInput
                                : T extends "0x1::option::Option<u8>"
                                    ? string
                                    | number
                                    | null
                                    : T extends `0x1::option::Option<${infer U}>`
                                        ? MoveToTS<(...)>
                                        | null
                                        : T extends `vector<${(...)}>`
                                            ? (...)[]
                                            : (...) extends (...) ? (...) : (...)

    The TypeScript type of an argument of Move type T other than the fixed-point structs: integers, bool, signer, address, 0x1::object::Object<U> (an address), 0x1::string::String, and vector<U> and 0x1::option::Option<U> of these. Any other struct type is its type name as a string literal type, and a type it does not recognise is unknown. MoveToTS selects it.

    Type Parameters

    • T extends string