Skip to content

Commit

Permalink
Merge pull request #479 from oidualc/feature/expose-readers-types
Browse files Browse the repository at this point in the history
Expose READERS type instead of generic string
  • Loading branch information
ericblade authored Jan 2, 2023
2 parents 0714928 + af9d59d commit f4cd7f3
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 2 deletions.
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -135,7 +135,8 @@
"Alex Howes <[email protected]>",
"Sudham Jayanthi <[email protected]>",
"Ben Khoo <[email protected]>",
"Andy Edinborough <[email protected]>"
"Andy Edinborough <[email protected]>",
"Claudio Cocciarelli <[email protected]>"
],
"license": "MIT",
"engines": {
Expand Down
18 changes: 17 additions & 1 deletion type-definitions/quagga.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -870,7 +870,7 @@ export interface QuaggaJSConfigObject {
/**
* @default [ "code_128_reader" ]
*/
readers?: (QuaggaJSReaderConfig | string)[];
readers?: (QuaggaJSReaderConfig | QuaggaJSCodeReader)[];

debug?: {
/**
Expand Down Expand Up @@ -1005,3 +1005,19 @@ export type TypedArray =
| Uint32Array
| Float32Array
| Float64Array;

export type QuaggaJSCodeReader =
| 'code_128_reader'
| 'ean_reader'
| 'ean_5_reader'
| 'ean_2_reader'
| 'ean_8_reader'
| 'code_39_reader'
| 'code_39_vin_reader'
| 'codabar_reader'
| 'upc_reader'
| 'upc_e_reader'
| 'i2of5_reader'
| '2of5_reader'
| 'code_93_reader'
| 'code_32_reader';

0 comments on commit f4cd7f3

Please sign in to comment.