diff --git a/package.json b/package.json index f344bd7..384f5d4 100644 --- a/package.json +++ b/package.json @@ -135,7 +135,8 @@ "Alex Howes ", "Sudham Jayanthi ", "Ben Khoo ", - "Andy Edinborough " + "Andy Edinborough ", + "Claudio Cocciarelli " ], "license": "MIT", "engines": { diff --git a/type-definitions/quagga.d.ts b/type-definitions/quagga.d.ts index 5e62da0..a74b3db 100644 --- a/type-definitions/quagga.d.ts +++ b/type-definitions/quagga.d.ts @@ -870,7 +870,7 @@ export interface QuaggaJSConfigObject { /** * @default [ "code_128_reader" ] */ - readers?: (QuaggaJSReaderConfig | string)[]; + readers?: (QuaggaJSReaderConfig | QuaggaJSCodeReader)[]; debug?: { /** @@ -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';