Skip to content

fix: expose CodeTypes on ScannerOption to match native - #19

Merged
rdlabo merged 2 commits into
mainfrom
docs/refresh-docgen-readme
Aug 19, 2026
Merged

fix: expose CodeTypes on ScannerOption to match native#19
rdlabo merged 2 commits into
mainfrom
docs/refresh-docgen-readme

Conversation

@rdlabo

@rdlabo rdlabo commented Aug 19, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • Change ScannerOption from metadataObjectTypes to CodeTypes, matching iOS and Android.
  • Add JSDoc for detectionWidth / detectionHeight and make isMulti optional (native already defaults to false).
  • Accept the previous metadataObjectTypes key as a native fallback.
  • Regenerate the README API from docgen and show CodeTypes in the guide examples.

Test plan

  • npm run docgen matches the committed README
  • TypeScript present({ CodeTypes: ['qr'] }) type-checks
  • Native still scans when only metadataObjectTypes is passed

rdlabo added 2 commits August 19, 2026 13:05
Keep the published API reference in sync with src/definitions.ts.
Native iOS and Android already read CodeTypes. Align the TypeScript
interface, document detection-area defaults, and accept the previous
metadataObjectTypes key as a fallback.
@rdlabo rdlabo changed the title docs: regenerate README API from docgen fix: expose CodeTypes on ScannerOption to match native Aug 19, 2026
@rdlabo
rdlabo merged commit c438518 into main Aug 19, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant