Abdullahrasheed45 commited on
Commit
9811303
·
verified ·
1 Parent(s): 4464c3c

Create index.ts

Browse files
Files changed (1) hide show
  1. src/types/index.ts +23 -0
src/types/index.ts ADDED
@@ -0,0 +1,23 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ export type AppState =
2
+ | "requesting-permission"
3
+ | "welcome"
4
+ | "loading"
5
+ | "captioning";
6
+
7
+ export interface WebcamPermissionError {
8
+ type: "general" | "https" | "not-supported" | "permission";
9
+ message: string;
10
+ details: string;
11
+ }
12
+
13
+ export interface Position {
14
+ x: number;
15
+ y: number;
16
+ }
17
+
18
+ export interface Dimensions {
19
+ width: number;
20
+ height: number;
21
+ }
22
+
23
+ export type InitialPosition = "bottom-left" | "bottom-right" | Position;