Skip to content

Commit

Permalink
Updated TypeScript definitions
Browse files Browse the repository at this point in the history
  • Loading branch information
SanichKotikov authored and lindell committed Apr 30, 2017
1 parent c71f5a5 commit cd5721e
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions jsbarcode.d.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,4 @@
declare function JsBarcode(element: any): jsbarcode.api;
declare function JsBarcode(element: any, data: string, options?: jsbarcode.Options): void;

declare namespace jsbarcode {
declare namespace JsBarcode {
interface Options {
width?: number,
height?: number,
Expand Down Expand Up @@ -51,4 +48,8 @@ declare namespace jsbarcode {
}
}

declare function JsBarcode(element: any): JsBarcode.api;
declare function JsBarcode(element: any, data: string, options?: JsBarcode.Options): void;

export = JsBarcode;
export as namespace JsBarcode;

0 comments on commit cd5721e

Please sign in to comment.