Bunch of updates in preparation for publish

This commit is contained in:
Ingvar Stepanyan
2023-08-05 18:46:26 +01:00
parent a4052aef92
commit c80c04f006
23 changed files with 486 additions and 358 deletions

24
build/camera.d.ts generated vendored Normal file
View File

@@ -0,0 +1,24 @@
export type { Config, SupportedOps } from '../build/libapi.mjs';
export declare function rethrowIfCritical(err: any): void;
export declare class Camera {
#private;
static showPicker(): Promise<void>;
connect(): Promise<void>;
disconnect(): Promise<void>;
getConfig(): Promise<{
name: string;
info: string;
label: string;
readonly: boolean;
} & {
type: "window";
children: Record<string, import("../build/libapi.mjs").Config>;
} & {
type: "window";
}>;
getSupportedOps(): Promise<import("../build/libapi.mjs").SupportedOps>;
setConfigValue(name: string, value: string | number | boolean): Promise<void>;
capturePreviewAsBlob(): Promise<Blob>;
captureImageAsFile(): Promise<File>;
consumeEvents(): Promise<boolean>;
}