Type alias LibSANEOptions

LibSANEOptions: {
    debugFunctionCalls?: boolean;
    debugSANE?: boolean;
    debugTestDevices?: number;
    debugUSB?: boolean;
    loaderPrefetchToBlob?: boolean;
    loaderRemoveGlobal?: boolean;
    loaderURL?: string;
    promisify?: boolean;
    promisifyQueue?: boolean;
}

SANE Emscripten module options (specific to sane-wasm).

Type declaration

  • Optional debugFunctionCalls?: boolean

    Enables debug messages for SANE function calls.

    Defaultvalue

    false

  • Optional debugSANE?: boolean

    Enables SANE low-level debug messages, this can be quite verbose.

    Defaultvalue

    false

  • Optional debugTestDevices?: number

    Sets the number of test devices for SANE's test backend.

    Defaultvalue

    0

  • Optional debugUSB?: boolean

    Enables libusb low-level debug messages, this can be quite verbose.

    Defaultvalue

    false

  • Optional loaderPrefetchToBlob?: boolean

    Should the loader prefetch the resources to a Bob object? This is required when loading from a different origin. Check the loader code for more information.

    The loader is only used on web environments.

    Defaultvalue

    true

  • Optional loaderRemoveGlobal?: boolean

    Should the loader remove the global module variable window.LibSANE?

    The loader is only used on web environments.

    Defaultvalue

    true

  • Optional loaderURL?: string

    Loader URL that serves the build artifacts (libsane.js etc.).

    The loader is only used on web environments.

    Defaultvalue

    "sane-wasm @ jsdelivr.net"

  • Optional promisify?: boolean

    Enables sane-wasm "promisify" to normalize the API. See pre.js for more information.

    Deprecated

    Setting this to false changes the API definition! Some functions may stop being asynchronous in some cases. You want this option enabled! This option may be removed in the future.

    Defaultvalue

    true

  • Optional promisifyQueue?: boolean

    Enables sane-wasm "promisify" queue that queues function calls to prevent issues with calling multiple asynchronous functions. See pre.js for more information.

    Deprecated

    You want this option enabled! This option may be removed in the future.

    Defaultvalue

    true

Generated using TypeDoc