zxing-wasm
    Preparing search index...

    Interface PrepareZXingModuleOptions

    interface PrepareZXingModuleOptions {
        equalityFn?: (cachedOverrides: Partial, overrides: Partial) => boolean;
        fireImmediately?: boolean;
        overrides?: Partial<EmscriptenModule>;
    }
    Index

    Properties

    equalityFn?: (cachedOverrides: Partial, overrides: Partial) => boolean

    A function to compare the cached overrides with the input overrides. So that the module promise can be reused if the overrides are the same. Defaults to a shallow equality function.

    fireImmediately?: boolean

    Whether to instantiate the module immediately. If true, the module is eagerly instantiated and a promise of the module is returned. If false, only the overrides are updated and module instantiation is deferred to the first read/write operation.

    false
    
    overrides?: Partial<EmscriptenModule>

    The Emscripten module overrides to be passed to the factory function. The locateFile function is overridden by default to load the WASM file from the jsDelivr CDN.