Skip to content

[Doc Review] launch() parameter types not documented #50

@Tom-Dynamsoft

Description

@Tom-Dynamsoft

Documentation Issue: launch() parameter types not documented

Category: Accuracy
Severity: Warning
Found by: docs-updater review mode (2026-02-25)
SDK: MRZ Scanner JavaScript Edition
Finding ID: A4

Problem

The launch() method syntax shows launch(fileToProcess) with no type annotation. The SDK source defines the parameter as imageOrFile with a union type.

Location

  • Docs file: api/mrz-scanner.md — launch() Syntax section

Expected (from source)

launch(imageOrFile?: Blob | string | DSImageData | HTMLImageElement | HTMLVideoElement | HTMLCanvasElement): Promise<MRZResult>

Actual (in docs)

launch(fileToProcess): Promise<MRZResult>

No types, different parameter name.

Recommended Fix

Add the full parameter type and rename fileToProcess to imageOrFile to match source. Add a parameter description table.

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentationreview-findingFinding from automated documentation review

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions