mirror of
https://github.com/darksaid98/new-phone-who-dis.git
synced 2026-12-04 14:38:45 +00:00
tweak(phone/dialer): Cleanup & type safety for state
Renamed some types to better represent their data
This commit is contained in:
1 parent
a0c5f94514
commit
e6deff23da
10 files changed
+46
-49
No files matched your search
+2
-9
@@ -1,4 +1,4 @@
|
||||
export interface CallProps {
|
||||
export interface ActiveCall {
|
||||
active: boolean;
|
||||
accepted: boolean;
|
||||
isTransmitter: boolean;
|
||||
@@ -6,7 +6,7 @@ export interface CallProps {
|
||||
receiver: string;
|
||||
}
|
||||
|
||||
export interface ICall {
|
||||
export interface CallHistoryItem {
|
||||
id?: number;
|
||||
identifier: string;
|
||||
transmitter: string;
|
||||
@@ -18,13 +18,6 @@ export interface ICall {
|
||||
accepted: boolean;
|
||||
}
|
||||
|
||||
export interface ICallDuration {
|
||||
ms: number;
|
||||
s: number;
|
||||
m: number;
|
||||
h: number;
|
||||
}
|
||||
|
||||
export enum CallEvents {
|
||||
INITIALIZE_CALL = 'npwd:beginCall',
|
||||
START_CALL = 'npwd:startCall',
|
||||
|
||||
Reference in new issue
Block a user