Type alias TransformNodeType<Type>

TransformNodeType<Type>: Type extends ((...args) => infer Ret)
    ? ((...args) => TransformNodeType<Ret>)
    : Type extends [infer Item, ...(infer Rest)]
        ? [TransformNodeType<Item>, ...TransformNodeType<Rest>]
        : Type extends (infer Item)[]
            ? TransformNodeType<Item>[]
            : Type extends Promise<infer T>
                ? Promise<TransformNodeType<T>>
                : Type extends {
                        [P in any]: any
                    }
                    ? {
                        [Property in keyof Type]: Property extends BigIntPropertyNames
                            ? PreserveOptional<bigint, Type[Property]>
                            : Property extends NumberPropertyNames
                                ? PreserveOptional<number, Type[Property]>
                                : Property extends "txHash"
                                    ? PreserveOptional<TxHash, Type[Property]>
                                    : Property extends "bytecode"
                                        ? PreserveOptional<ContractBytearray, Type[Property]>
                                        : TransformNodeType<Type[Property]>
                    }
                    : Type

Type Parameters

  • Type

Generated using TypeDoc