Skip to content

Commit fe08b2d

Browse files
committed
Updated TypeScript definitions
1 parent 76608cb commit fe08b2d

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

jsbarcode.d.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@ declare namespace JsBarcode {
2525
ean128?: boolean;
2626
}
2727

28+
interface Ean8Options extends BaseOptions {
29+
flat?: boolean;
30+
}
31+
2832
interface Ean13Options extends BaseOptions {
2933
flat?: boolean;
3034
lastChar?: string;
@@ -43,7 +47,7 @@ declare namespace JsBarcode {
4347
CODE128B(value: string, options?: Code128Options): api;
4448
CODE128C(value: string, options?: Code128Options): api;
4549
EAN13(value: string, options?: Ean13Options): api;
46-
EAN8(value: string, options?: BaseOptions): api;
50+
EAN8(value: string, options?: Ean8Options): api;
4751
EAN5(value: string, options?: BaseOptions): api;
4852
EAN2(value: string, options?: BaseOptions): api;
4953
UPC(value: string, options?: BaseOptions): api;

0 commit comments

Comments
 (0)