Skip to content

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

@Felix-Dynamsoft

Description

@Felix-Dynamsoft

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions