A free and open source instant messaging and VoIP chat app built for friends, groups, and communities.
refactor(ipc): unexport file-local desktop ipc types and values
Hampusf3e553042b76
diff --git a/packages/desktop_ipc/src/BrowserHandoffContract.ts b/packages/desktop_ipc/src/BrowserHandoffContract.tsindex 58cc6f182..6401c04d3 100644--- a/packages/desktop_ipc/src/BrowserHandoffContract.ts+++ b/packages/desktop_ipc/src/BrowserHandoffContract.ts@@ -42,14 +42,14 @@ export interface DesktopHandoffUser {readonly email?: string | null;}-export interface DesktopHandoffIncompleteResult {+interface DesktopHandoffIncompleteResult {readonly status:| typeof DesktopHandoffStatus.PENDING| typeof DesktopHandoffStatus.EXPIRED| typeof DesktopHandoffStatus.DENIED;}-export interface DesktopHandoffCompletedResult {+interface DesktopHandoffCompletedResult {readonly status: typeof DesktopHandoffStatus.COMPLETED;readonly token: string;readonly userId: string;diff --git a/packages/desktop_ipc/src/DesktopLabels.ts b/packages/desktop_ipc/src/DesktopLabels.tsindex f08fca6f9..0ab9b6e60 100644--- a/packages/desktop_ipc/src/DesktopLabels.ts+++ b/packages/desktop_ipc/src/DesktopLabels.ts@@ -29,7 +29,7 @@ export function normalizeArchitectureValue(value: string | null | undefined): streturn trimmed || undefined;}-export function getWindowsVersionName(osVersion: string): string {+function getWindowsVersionName(osVersion: string): string {const parts = osVersion.split('.');const majorVersion = parseInt(parts[0], 10);const buildNumber = parseInt(parts[2], 10);diff --git a/packages/desktop_ipc/src/LegacyShellHintSeed.ts b/packages/desktop_ipc/src/LegacyShellHintSeed.tsindex 80645b69a..6820d3740 100644--- a/packages/desktop_ipc/src/LegacyShellHintSeed.ts+++ b/packages/desktop_ipc/src/LegacyShellHintSeed.ts@@ -6,9 +6,9 @@ const LEGACY_SKELETON_LAYOUT_MEMORY_KEY = 'SkeletonLayoutMemory';const LEGACY_SIDEBAR_WIDTH_KEY = 'fluxer:ui:sidebar-width';const DM_ROOT_PATHNAME = '/channels/@me';-export const LEGACY_SHELL_HINT_SEED_VERSION = 4;+const LEGACY_SHELL_HINT_SEED_VERSION = 4;-export const LEGACY_SHELL_HINT_NAGBAR_TONE_ORDER: ReadonlyArray<string> = Object.freeze([+const LEGACY_SHELL_HINT_NAGBAR_TONE_ORDER: ReadonlyArray<string> = Object.freeze(['neutral','maintenance','maintenance_scheduled',diff --git a/packages/desktop_ipc/src/LocalAppRuntimeContract.ts b/packages/desktop_ipc/src/LocalAppRuntimeContract.tsindex b450c5ce8..83d06a747 100644--- a/packages/desktop_ipc/src/LocalAppRuntimeContract.ts+++ b/packages/desktop_ipc/src/LocalAppRuntimeContract.ts@@ -33,7 +33,7 @@ export interface DesktopRuntimeCommit extends DesktopRuntimeTransactionRequest {export type DesktopRuntimeFinalization = DesktopRuntimeCommittedTransactionRequest;-export type DesktopRuntimeAbortDisposition = 'absent' | 'aborted' | 'rolled-back';+type DesktopRuntimeAbortDisposition = 'absent' | 'aborted' | 'rolled-back';export interface DesktopRuntimeAbort {readonly disposition: DesktopRuntimeAbortDisposition;diff --git a/packages/desktop_ipc/src/ModuleContract.ts b/packages/desktop_ipc/src/ModuleContract.tsindex 268580c06..82217c313 100644--- a/packages/desktop_ipc/src/ModuleContract.ts+++ b/packages/desktop_ipc/src/ModuleContract.ts@@ -42,7 +42,7 @@ export interface DesktopModuleEnsureResult {readonly status: DesktopModuleEnsureStatus;}-export interface DesktopPendingModuleUpdate {+interface DesktopPendingModuleUpdate {readonly modules: ReadonlyArray<string>;}diff --git a/packages/desktop_ipc/src/OtherPlatformTemplateContract.ts b/packages/desktop_ipc/src/OtherPlatformTemplateContract.tsindex 093f80e87..e9ad98611 100644--- a/packages/desktop_ipc/src/OtherPlatformTemplateContract.ts+++ b/packages/desktop_ipc/src/OtherPlatformTemplateContract.ts@@ -21,7 +21,7 @@ export const OtherPlatformTemplateFetchFailure = Object.freeze({export type OtherPlatformTemplateFetchFailure =(typeof OtherPlatformTemplateFetchFailure)[keyof typeof OtherPlatformTemplateFetchFailure];-export interface OtherPlatformTemplateFetchSuccess {+interface OtherPlatformTemplateFetchSuccess {readonly ok: true;readonly template: Readonly<Record<string, unknown>>;}