Files
web-dslr/examples/preact/types.d.ts
2023-08-05 18:46:26 +01:00

10 lines
278 B
TypeScript

type AppState =
| { type: 'CameraPicker' }
| { type: 'Status'; message: string }
| {
type: 'Config';
config: import('web-gphoto2').Config;
capturePreview: (() => Promise<Blob>) | undefined;
triggerCapture: (() => Promise<File>) | undefined;
};