Upgrade Prettier to 2.4.1
This commit is contained in:
parent
f204784afe
commit
5619eeca83
176 changed files with 1961 additions and 2465 deletions
|
@ -133,13 +133,11 @@ type ValuesWithSetters = Omit<
|
|||
| 'mediaCameraPermissions'
|
||||
>;
|
||||
|
||||
export type IPCEventGetterType<
|
||||
Key extends keyof IPCEventsValuesType
|
||||
> = `get${Capitalize<Key>}`;
|
||||
export type IPCEventGetterType<Key extends keyof IPCEventsValuesType> =
|
||||
`get${Capitalize<Key>}`;
|
||||
|
||||
export type IPCEventSetterType<
|
||||
Key extends keyof IPCEventsValuesType
|
||||
> = `set${Capitalize<Key>}`;
|
||||
export type IPCEventSetterType<Key extends keyof IPCEventsValuesType> =
|
||||
`set${Capitalize<Key>}`;
|
||||
|
||||
export type IPCEventsGettersType = {
|
||||
[Key in keyof ValuesWithGetters as IPCEventGetterType<Key>]: () => ValuesWithGetters[Key];
|
||||
|
@ -214,11 +212,8 @@ export function createIPCEvents(
|
|||
|
||||
// Getters only
|
||||
getAvailableIODevices: async () => {
|
||||
const {
|
||||
availableCameras,
|
||||
availableMicrophones,
|
||||
availableSpeakers,
|
||||
} = await calling.getAvailableIODevices();
|
||||
const { availableCameras, availableMicrophones, availableSpeakers } =
|
||||
await calling.getAvailableIODevices();
|
||||
|
||||
return {
|
||||
// mapping it to a pojo so that it is IPC friendly
|
||||
|
@ -352,7 +347,8 @@ export function createIPCEvents(
|
|||
await universalExpireTimer.set(newValue);
|
||||
|
||||
// Update account in Storage Service
|
||||
const conversationId = window.ConversationController.getOurConversationIdOrThrow();
|
||||
const conversationId =
|
||||
window.ConversationController.getOurConversationIdOrThrow();
|
||||
const account = window.ConversationController.get(conversationId);
|
||||
assert(account, "Account wasn't found");
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue