node-ctypes - v2.10.0
    Preparing search index...

    Type Alias FFIReturn<T>

    FFIReturn: FFIType extends T
        ? any
        : T extends null
            ? undefined
            : T extends { _check_retval_: (...args: never[]) => infer Result }
                ? Result
                : T extends StructureClass ? InstanceType<T> : JsFromCType<T>

    JS value returned by a function with restype T. As in Python, a POINTER(T) restype returns a PointerInstance, a CFUNCTYPE restype a callable function (null for NULL) and a Structure/Union class an instance of that class.

    Type Parameters

    • T