Skip to content

Commit 2b000f9

Browse files
authored
Add: xmlDocument to option type definition
Adds the interface NodeOptions (which extends BaseOptions) with the property xmlDocument(of type XMLDocument), to the Options Type definition.
1 parent 6ac988e commit 2b000f9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

jsbarcode.d.ts

+5-1
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ declare namespace JsBarcode {
2121
valid?: (valid: boolean) => void;
2222
}
2323

24+
interface NodeOptions extends BaseOptions {
25+
xmlDocument?: XMLDocument;
26+
}
27+
2428
interface Code128Options extends BaseOptions {
2529
ean128?: boolean;
2630
}
@@ -34,7 +38,7 @@ declare namespace JsBarcode {
3438
lastChar?: string;
3539
}
3640

37-
type Options = BaseOptions | Code128Options | Ean13Options;
41+
type Options = BaseOptions | Code128Options | Ean13Options | NodeOptions;
3842

3943
interface api {
4044
options(options: Options): api;

0 commit comments

Comments
 (0)