Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating Barcode Format with EnumBarcodeFormat requires type casting in TypeScript #389

Open
felixindynamsoft opened this issue Aug 20, 2024 · 1 comment
Assignees

Comments

@felixindynamsoft
Copy link

To update barcodeFormatIds in TypeScript, we'll need to cast the type to use BigInt

eg,

settings.barcodeSettings.barcodeFormatIds = BigInt(EnumBarcodeFormat.BF_PDF41) | BigInt(EnumBarcodeFormat.BF_ONED);

Should we update the enum to only show the type to be bigint instead of bigint | string ?

Documentation Link: Barcode Formats and Count - Dynamsoft Barcode Reader SDK

Error message:

image

@felixindynamsoft felixindynamsoft changed the title Updating Barcode Format with EnumBarcodeFormat requires type casting when used in TypeScript Updating Barcode Format with EnumBarcodeFormat requires type casting in TypeScript Aug 20, 2024
@mythicaleia mythicaleia self-assigned this Aug 21, 2024
@felixindynamsoft
Copy link
Author

Received information from Shen that EnumBarcodeFormat will only be bigint on a new version. @mythicaleia

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

No branches or pull requests

2 participants