You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
25 lines
685 B
25 lines
685 B
8 months ago
|
/**
|
||
|
* @internal
|
||
|
*/
|
||
|
export interface ZXingWriteResult {
|
||
|
image: Uint8Array;
|
||
|
/**
|
||
|
* Encoding error.
|
||
|
* If there's no error, this will be an empty string `""`.
|
||
|
*
|
||
|
* @see {@link WriteResult.error | `WriteResult.error`}
|
||
|
*/
|
||
|
error: string;
|
||
|
delete: () => void;
|
||
|
}
|
||
|
export interface WriteResult extends Omit<ZXingWriteResult, "image" | "delete"> {
|
||
|
/**
|
||
|
* The encoded barcode as an image blob.
|
||
|
* If some error happens, this will be `null`.
|
||
|
*
|
||
|
* @see {@link WriteResult.error | `WriteResult.error`}
|
||
|
*/
|
||
|
image: Blob | null;
|
||
|
}
|
||
|
export declare function zxingWriteResultToWriteResult(zxingWriteResult: ZXingWriteResult): WriteResult;
|