Skip to content

Commit

Permalink
Merge pull request #342 from alissonmdo/patch-1
Browse files Browse the repository at this point in the history
Add: xmlDocument to option type definition
  • Loading branch information
lindell authored Aug 20, 2020
2 parents 6ac988e + 2b000f9 commit 842ea7c
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion jsbarcode.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,10 @@ declare namespace JsBarcode {
valid?: (valid: boolean) => void;
}

interface NodeOptions extends BaseOptions {
xmlDocument?: XMLDocument;
}

interface Code128Options extends BaseOptions {
ean128?: boolean;
}
Expand All @@ -34,7 +38,7 @@ declare namespace JsBarcode {
lastChar?: string;
}

type Options = BaseOptions | Code128Options | Ean13Options;
type Options = BaseOptions | Code128Options | Ean13Options | NodeOptions;

interface api {
options(options: Options): api;
Expand Down

0 comments on commit 842ea7c

Please sign in to comment.