Skip to content

Commit

Permalink
optional hints
Browse files Browse the repository at this point in the history
  • Loading branch information
odahcam committed Oct 20, 2020
1 parent 3d15feb commit 66f7a98
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/oned/MultiFormatOneDReader.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ export default class MultiFormatOneDReader extends OneDReader {

private readers: OneDReader[] = [];

public constructor(hints: Map<DecodeHintType, any>) {
public constructor(hints?: Map<DecodeHintType, any>) {
super();
const possibleFormats = !hints ? null : <BarcodeFormat[]>hints.get(DecodeHintType.POSSIBLE_FORMATS);
const useCode39CheckDigit = hints && hints.get(DecodeHintType.ASSUME_CODE_39_CHECK_DIGIT) !== undefined;
Expand Down

0 comments on commit 66f7a98

Please sign in to comment.