From 54847fa8b16a5c8aee76772fc8515d15fa5b4301 Mon Sep 17 00:00:00 2001 From: chrisnojima Date: Thu, 14 May 2026 17:57:00 -0400 Subject: [PATCH 01/28] build: add tsconfig.base.json --- shared/tsconfig.base.json | 38 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 38 insertions(+) create mode 100644 shared/tsconfig.base.json diff --git a/shared/tsconfig.base.json b/shared/tsconfig.base.json new file mode 100644 index 000000000000..0202ce253346 --- /dev/null +++ b/shared/tsconfig.base.json @@ -0,0 +1,38 @@ +{ + "extends": "expo/tsconfig.base", + "compilerOptions": { + "allowJs": false, + "allowImportingTsExtensions": true, + "allowUnreachableCode": false, + "allowUnusedLabels": false, + "checkJs": false, + "incremental": true, + "isolatedModules": true, + "jsx": "preserve", + "module": "preserve", + "moduleResolution": "bundler", + "exactOptionalPropertyTypes": false, + "noEmit": true, + "noFallthroughCasesInSwitch": true, + "noImplicitAny": true, + "noImplicitOverride": true, + "noImplicitReturns": true, + "noImplicitThis": true, + "noPropertyAccessFromIndexSignature": true, + "noUncheckedIndexedAccess": true, + "noUnusedLocals": true, + "noUnusedParameters": true, + "resolveJsonModule": true, + "skipLibCheck": true, + "sourceMap": false, + "strict": true, + "target": "esnext" + }, + "watchOptions": { + "watchFile": "useFsEvents", + "watchDirectory": "useFsEvents", + "fallbackPolling": "dynamicPriority", + "synchronousWatchDirectory": true, + "excludeDirectories": ["**/node_modules", "./desktop/dist", "./desktop/build"] + } +} From 55b2cd807a1ff6b9fabb14fc757ba4c75d317eff Mon Sep 17 00:00:00 2001 From: chrisnojima Date: Thu, 14 May 2026 17:59:17 -0400 Subject: [PATCH 02/28] build: add gen-ts-paths.mjs to generate per-platform tsconfig paths --- shared/tools/gen-ts-paths.mjs | 66 +++++++++++++++++++++++++++++++++++ 1 file changed, 66 insertions(+) create mode 100755 shared/tools/gen-ts-paths.mjs diff --git a/shared/tools/gen-ts-paths.mjs b/shared/tools/gen-ts-paths.mjs new file mode 100755 index 000000000000..60ddb3e9741e --- /dev/null +++ b/shared/tools/gen-ts-paths.mjs @@ -0,0 +1,66 @@ +#!/usr/bin/env node +import {readdirSync, statSync, writeFileSync, existsSync} from 'fs' +import {join, relative, dirname, basename, extname} from 'path' +import {fileURLToPath} from 'url' + +const sharedDir = join(fileURLToPath(import.meta.url), '..', '..') + +const PLATFORMS = ['desktop', 'native'] +const EXTENSIONS = ['.tsx', '.ts', '.mts'] +const SKIP_DIRS = new Set(['node_modules', '.tsOuts', 'dist', 'build', 'tools']) + +function walk(dir, results = []) { + for (const entry of readdirSync(dir, {withFileTypes: true})) { + if (entry.isDirectory()) { + if (!SKIP_DIRS.has(entry.name)) walk(join(dir, entry.name), results) + } else { + results.push(join(dir, entry.name)) + } + } + return results +} + +function stripExt(file) { + for (const ext of EXTENSIONS) { + if (file.endsWith(ext)) return file.slice(0, -ext.length) + } + return file +} + +// Collect all files +const allFiles = new Set(walk(sharedDir)) + +// For each platform, find modules that have a platform variant but no plain variant +function buildPaths(platform) { + const paths = {'@/*': ['./*']} + + for (const file of allFiles) { + for (const ext of EXTENSIONS) { + const suffix = `.${platform}${ext}` + if (!file.endsWith(suffix)) continue + + // e.g. /shared/styles/index.desktop.tsx → base = /shared/styles/index + const base = file.slice(0, -suffix.length) + + // Check if a plain variant exists (foo.tsx / foo.ts / foo.mts) + const hasPlain = EXTENSIONS.some(e => existsSync(base + e)) + if (hasPlain) continue + + // Generate the @/* key and value + const rel = relative(sharedDir, base) // e.g. "styles/index" + const key = `@/${rel}` // e.g. "@/styles/index" + const value = `./${rel}.${platform}` // e.g. "./styles/index.desktop" + paths[key] = [value] + } + } + + return paths +} + +for (const platform of PLATFORMS) { + const paths = buildPaths(platform) + const out = {compilerOptions: {paths}} + const outFile = join(sharedDir, `tsconfig.paths.${platform}.json`) + writeFileSync(outFile, JSON.stringify(out, null, 2) + '\n') + console.log(`wrote tsconfig.paths.${platform}.json (${Object.keys(paths).length - 1} platform paths)`) +} From 19a2a474c8d15ee3ee4361b77d027bd3784ae452 Mon Sep 17 00:00:00 2001 From: chrisnojima Date: Thu, 14 May 2026 18:01:21 -0400 Subject: [PATCH 03/28] build: remove unused imports and dead stripExt function from gen-ts-paths.mjs --- shared/tools/gen-ts-paths.mjs | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) diff --git a/shared/tools/gen-ts-paths.mjs b/shared/tools/gen-ts-paths.mjs index 60ddb3e9741e..8e4e16ae0d79 100755 --- a/shared/tools/gen-ts-paths.mjs +++ b/shared/tools/gen-ts-paths.mjs @@ -1,6 +1,6 @@ #!/usr/bin/env node -import {readdirSync, statSync, writeFileSync, existsSync} from 'fs' -import {join, relative, dirname, basename, extname} from 'path' +import {readdirSync, writeFileSync, existsSync} from 'fs' +import {join, relative} from 'path' import {fileURLToPath} from 'url' const sharedDir = join(fileURLToPath(import.meta.url), '..', '..') @@ -20,13 +20,6 @@ function walk(dir, results = []) { return results } -function stripExt(file) { - for (const ext of EXTENSIONS) { - if (file.endsWith(ext)) return file.slice(0, -ext.length) - } - return file -} - // Collect all files const allFiles = new Set(walk(sharedDir)) From 89cbdb5b41ee321024004f95801671bb80cfa8af Mon Sep 17 00:00:00 2001 From: chrisnojima Date: Thu, 14 May 2026 18:02:02 -0400 Subject: [PATCH 04/28] build: add generated tsconfig paths files --- shared/.gitignore | 1 + shared/tsconfig.paths.desktop.json | 504 +++++++++++++++++++++++++++++ shared/tsconfig.paths.native.json | 390 ++++++++++++++++++++++ 3 files changed, 895 insertions(+) create mode 100644 shared/tsconfig.paths.desktop.json create mode 100644 shared/tsconfig.paths.native.json diff --git a/shared/.gitignore b/shared/.gitignore index 114613c2f058..adca0cbc20bb 100644 --- a/shared/.gitignore +++ b/shared/.gitignore @@ -56,3 +56,4 @@ main.jsbundle coverage-ts temp.log .watchman-cookie-* +.tsOuts/ diff --git a/shared/tsconfig.paths.desktop.json b/shared/tsconfig.paths.desktop.json new file mode 100644 index 000000000000..071a308e66fe --- /dev/null +++ b/shared/tsconfig.paths.desktop.json @@ -0,0 +1,504 @@ +{ + "compilerOptions": { + "paths": { + "@/*": [ + "./*" + ], + "@/app/main": [ + "./app/main.desktop" + ], + "@/chat/audio/audio-video": [ + "./chat/audio/audio-video.desktop" + ], + "@/chat/conversation/attachment-fullscreen/index": [ + "./chat/conversation/attachment-fullscreen/index.desktop" + ], + "@/chat/conversation/giphy/index": [ + "./chat/conversation/giphy/index.desktop" + ], + "@/chat/conversation/header-area/index": [ + "./chat/conversation/header-area/index.desktop" + ], + "@/chat/conversation/input-area/filepicker-popup/index": [ + "./chat/conversation/input-area/filepicker-popup/index.desktop" + ], + "@/chat/conversation/input-area/location-popup": [ + "./chat/conversation/input-area/location-popup.desktop" + ], + "@/chat/conversation/input-area/normal/input": [ + "./chat/conversation/input-area/normal/input.desktop" + ], + "@/chat/conversation/input-area/normal/set-explode-popup/index": [ + "./chat/conversation/input-area/normal/set-explode-popup/index.desktop" + ], + "@/chat/conversation/input-area/suggestors/suggestion-list": [ + "./chat/conversation/input-area/suggestors/suggestion-list.desktop" + ], + "@/chat/conversation/list-area/index": [ + "./chat/conversation/list-area/index.desktop" + ], + "@/chat/conversation/messages/attachment/image/imageimpl": [ + "./chat/conversation/messages/attachment/image/imageimpl.desktop" + ], + "@/chat/conversation/messages/attachment/video/videoimpl": [ + "./chat/conversation/messages/attachment/video/videoimpl.desktop" + ], + "@/chat/conversation/messages/text/unfurl/unfurl-list/image/video": [ + "./chat/conversation/messages/text/unfurl/unfurl-list/image/video.desktop" + ], + "@/chat/conversation/messages/wrapper/exploding-height-retainer/index": [ + "./chat/conversation/messages/wrapper/exploding-height-retainer/index.desktop" + ], + "@/chat/conversation/messages/wrapper/long-pressable/index": [ + "./chat/conversation/messages/wrapper/long-pressable/index.desktop" + ], + "@/chat/conversation/normal/index": [ + "./chat/conversation/normal/index.desktop" + ], + "@/chat/conversation/rekey/participant-rekey": [ + "./chat/conversation/rekey/participant-rekey.desktop" + ], + "@/chat/conversation/rekey/you-rekey": [ + "./chat/conversation/rekey/you-rekey.desktop" + ], + "@/chat/create-channel/index": [ + "./chat/create-channel/index.desktop" + ], + "@/chat/inbox/index": [ + "./chat/inbox/index.desktop" + ], + "@/chat/inbox/row/small-team/swipe-conv-actions/index": [ + "./chat/inbox/row/small-team/swipe-conv-actions/index.desktop" + ], + "@/chat/inbox/use-header-portal": [ + "./chat/inbox/use-header-portal.desktop" + ], + "@/chat/inbox-search/background": [ + "./chat/inbox-search/background.desktop" + ], + "@/chat/location-map": [ + "./chat/location-map.desktop" + ], + "@/chat/pdf/index": [ + "./chat/pdf/index.desktop" + ], + "@/common-adapters/animation": [ + "./common-adapters/animation.desktop" + ], + "@/common-adapters/avatar/index": [ + "./common-adapters/avatar/index.desktop" + ], + "@/common-adapters/back-button": [ + "./common-adapters/back-button.desktop" + ], + "@/common-adapters/bottom-accessory": [ + "./common-adapters/bottom-accessory.desktop" + ], + "@/common-adapters/bottom-sheet": [ + "./common-adapters/bottom-sheet.desktop" + ], + "@/common-adapters/box": [ + "./common-adapters/box.desktop" + ], + "@/common-adapters/checkbox": [ + "./common-adapters/checkbox.desktop" + ], + "@/common-adapters/choice-list": [ + "./common-adapters/choice-list.desktop" + ], + "@/common-adapters/clickable-box": [ + "./common-adapters/clickable-box.desktop" + ], + "@/common-adapters/copyable-text": [ + "./common-adapters/copyable-text.desktop" + ], + "@/common-adapters/drag-and-drop": [ + "./common-adapters/drag-and-drop.desktop" + ], + "@/common-adapters/emoji/custom-emoji": [ + "./common-adapters/emoji/custom-emoji.desktop" + ], + "@/common-adapters/emoji/native-emoji": [ + "./common-adapters/emoji/native-emoji.desktop" + ], + "@/common-adapters/floating-menu/menu-layout/index": [ + "./common-adapters/floating-menu/menu-layout/index.desktop" + ], + "@/common-adapters/floating-picker": [ + "./common-adapters/floating-picker.desktop" + ], + "@/common-adapters/header-buttons": [ + "./common-adapters/header-buttons.desktop" + ], + "@/common-adapters/hot-key": [ + "./common-adapters/hot-key.desktop" + ], + "@/common-adapters/icon.constants-gen": [ + "./common-adapters/icon.constants-gen.desktop" + ], + "@/common-adapters/image": [ + "./common-adapters/image.desktop" + ], + "@/common-adapters/index": [ + "./common-adapters/index.desktop" + ], + "@/common-adapters/input3": [ + "./common-adapters/input3.desktop" + ], + "@/common-adapters/key-event-handler": [ + "./common-adapters/key-event-handler.desktop" + ], + "@/common-adapters/keyboard-avoiding-view": [ + "./common-adapters/keyboard-avoiding-view.desktop" + ], + "@/common-adapters/list": [ + "./common-adapters/list.desktop" + ], + "@/common-adapters/loading-line": [ + "./common-adapters/loading-line.desktop" + ], + "@/common-adapters/popup/bottom-sheet": [ + "./common-adapters/popup/bottom-sheet.desktop" + ], + "@/common-adapters/popup/floating-box/index": [ + "./common-adapters/popup/floating-box/index.desktop" + ], + "@/common-adapters/popup/floating-box/relative-floating-box": [ + "./common-adapters/popup/floating-box/relative-floating-box.desktop" + ], + "@/common-adapters/popup/index": [ + "./common-adapters/popup/index.desktop" + ], + "@/common-adapters/progress-indicator": [ + "./common-adapters/progress-indicator.desktop" + ], + "@/common-adapters/radio-button": [ + "./common-adapters/radio-button.desktop" + ], + "@/common-adapters/safe-area-view": [ + "./common-adapters/safe-area-view.desktop" + ], + "@/common-adapters/scroll-view": [ + "./common-adapters/scroll-view.desktop" + ], + "@/common-adapters/switch-toggle": [ + "./common-adapters/switch-toggle.desktop" + ], + "@/common-adapters/text-url": [ + "./common-adapters/text-url.desktop" + ], + "@/common-adapters/text": [ + "./common-adapters/text.desktop" + ], + "@/common-adapters/text.styles": [ + "./common-adapters/text.styles.desktop" + ], + "@/common-adapters/toast": [ + "./common-adapters/toast.desktop" + ], + "@/common-adapters/video": [ + "./common-adapters/video.desktop" + ], + "@/common-adapters/web-view": [ + "./common-adapters/web-view.desktop" + ], + "@/common-adapters/with-tooltip": [ + "./common-adapters/with-tooltip.desktop" + ], + "@/common-adapters/zoomable-image": [ + "./common-adapters/zoomable-image.desktop" + ], + "@/constants/init/index": [ + "./constants/init/index.desktop" + ], + "@/constants/platform": [ + "./constants/platform.desktop" + ], + "@/crypto/sub-nav/index": [ + "./crypto/sub-nav/index.desktop" + ], + "@/crypto/sub-nav/left-nav": [ + "./crypto/sub-nav/left-nav.desktop" + ], + "@/desktop/app/app-events": [ + "./desktop/app/app-events.desktop" + ], + "@/desktop/app/ctl": [ + "./desktop/app/ctl.desktop" + ], + "@/desktop/app/dev-tools": [ + "./desktop/app/dev-tools.desktop" + ], + "@/desktop/app/exec": [ + "./desktop/app/exec.desktop" + ], + "@/desktop/app/html-root": [ + "./desktop/app/html-root.desktop" + ], + "@/desktop/app/installer": [ + "./desktop/app/installer.desktop" + ], + "@/desktop/app/ipc-handlers": [ + "./desktop/app/ipc-handlers.desktop" + ], + "@/desktop/app/kb2-impl": [ + "./desktop/app/kb2-impl.desktop" + ], + "@/desktop/app/main-window": [ + "./desktop/app/main-window.desktop" + ], + "@/desktop/app/menu-bar": [ + "./desktop/app/menu-bar.desktop" + ], + "@/desktop/app/menu-helper": [ + "./desktop/app/menu-helper.desktop" + ], + "@/desktop/app/node": [ + "./desktop/app/node.desktop" + ], + "@/desktop/app/paths": [ + "./desktop/app/paths.desktop" + ], + "@/desktop/app/start-win-service": [ + "./desktop/app/start-win-service.desktop" + ], + "@/desktop/package": [ + "./desktop/package.desktop" + ], + "@/desktop/remote/component-loader": [ + "./desktop/remote/component-loader.desktop" + ], + "@/desktop/remote/drag-header": [ + "./desktop/remote/drag-header.desktop" + ], + "@/desktop/remote/proxies": [ + "./desktop/remote/proxies.desktop" + ], + "@/desktop/remote/remote-component": [ + "./desktop/remote/remote-component.desktop" + ], + "@/desktop/remote/use-browser-window": [ + "./desktop/remote/use-browser-window.desktop" + ], + "@/desktop/remote/use-serialize-props": [ + "./desktop/remote/use-serialize-props.desktop" + ], + "@/desktop/renderer/globals": [ + "./desktop/renderer/globals.desktop" + ], + "@/desktop/renderer/main": [ + "./desktop/renderer/main.desktop" + ], + "@/desktop/renderer/main2": [ + "./desktop/renderer/main2.desktop" + ], + "@/desktop/renderer/preload": [ + "./desktop/renderer/preload.desktop" + ], + "@/desktop/renderer/remote-event-handler": [ + "./desktop/renderer/remote-event-handler.desktop" + ], + "@/engine/index": [ + "./engine/index.desktop" + ], + "@/engine/index.platform": [ + "./engine/index.platform.desktop" + ], + "@/engine/session": [ + "./engine/session.desktop" + ], + "@/fs/filepreview/pdf-view": [ + "./fs/filepreview/pdf-view.desktop" + ], + "@/fs/filepreview/text-view": [ + "./fs/filepreview/text-view.desktop" + ], + "@/fs/footer/download-wrapper": [ + "./fs/footer/download-wrapper.desktop" + ], + "@/fs/footer/upload": [ + "./fs/footer/upload.desktop" + ], + "@/local-debug": [ + "./local-debug.desktop" + ], + "@/login/forms/container": [ + "./login/forms/container.desktop" + ], + "@/login/relogin/index": [ + "./login/relogin/index.desktop" + ], + "@/login/user-card/index": [ + "./login/user-card/index.desktop" + ], + "@/menubar/index": [ + "./menubar/index.desktop" + ], + "@/menubar/main": [ + "./menubar/main.desktop" + ], + "@/menubar/main2": [ + "./menubar/main2.desktop" + ], + "@/menubar/remote-proxy": [ + "./menubar/remote-proxy.desktop" + ], + "@/people/index": [ + "./people/index.desktop" + ], + "@/pinentry/index": [ + "./pinentry/index.desktop" + ], + "@/pinentry/main": [ + "./pinentry/main.desktop" + ], + "@/pinentry/main2": [ + "./pinentry/main2.desktop" + ], + "@/pinentry/remote-proxy": [ + "./pinentry/remote-proxy.desktop" + ], + "@/profile/edit-avatar/index": [ + "./profile/edit-avatar/index.desktop" + ], + "@/profile/pgp/choice/index": [ + "./profile/pgp/choice/index.desktop" + ], + "@/profile/pgp/import/index": [ + "./profile/pgp/import/index.desktop" + ], + "@/provision/code-page/qr-scan/index": [ + "./provision/code-page/qr-scan/index.desktop" + ], + "@/router-v2/common": [ + "./router-v2/common.desktop" + ], + "@/router-v2/header/index": [ + "./router-v2/header/index.desktop" + ], + "@/router-v2/left-tab-navigator": [ + "./router-v2/left-tab-navigator.desktop" + ], + "@/router-v2/router": [ + "./router-v2/router.desktop" + ], + "@/router-v2/screen-layout": [ + "./router-v2/screen-layout.desktop" + ], + "@/router-v2/tab-bar": [ + "./router-v2/tab-bar.desktop" + ], + "@/settings/common": [ + "./settings/common.desktop" + ], + "@/settings/delete-confirm/check-passphrase": [ + "./settings/delete-confirm/check-passphrase.desktop" + ], + "@/settings/feedback/container": [ + "./settings/feedback/container.desktop" + ], + "@/settings/files/index": [ + "./settings/files/index.desktop" + ], + "@/settings/notifications/index": [ + "./settings/notifications/index.desktop" + ], + "@/settings/screenprotector/index": [ + "./settings/screenprotector/index.desktop" + ], + "@/settings/subheading": [ + "./settings/subheading.desktop" + ], + "@/stores/fs-platform": [ + "./stores/fs-platform.desktop" + ], + "@/stores/push": [ + "./stores/push.desktop" + ], + "@/stores/settings-contacts": [ + "./stores/settings-contacts.desktop" + ], + "@/styles/index": [ + "./styles/index.desktop" + ], + "@/team-building/alphabet-index": [ + "./team-building/alphabet-index.desktop" + ], + "@/team-building/service-tab-bar": [ + "./team-building/service-tab-bar.desktop" + ], + "@/teams/add-members-wizard/add-contacts": [ + "./teams/add-members-wizard/add-contacts.desktop" + ], + "@/teams/invite-by-contact/container": [ + "./teams/invite-by-contact/container.desktop" + ], + "@/tracker/index": [ + "./tracker/index.desktop" + ], + "@/tracker/main": [ + "./tracker/main.desktop" + ], + "@/tracker/main2": [ + "./tracker/main2.desktop" + ], + "@/tracker/remote-proxy": [ + "./tracker/remote-proxy.desktop" + ], + "@/unlock-folders/device-list": [ + "./unlock-folders/device-list.desktop" + ], + "@/unlock-folders/engine-actions": [ + "./unlock-folders/engine-actions.desktop" + ], + "@/unlock-folders/index": [ + "./unlock-folders/index.desktop" + ], + "@/unlock-folders/main": [ + "./unlock-folders/main.desktop" + ], + "@/unlock-folders/main2": [ + "./unlock-folders/main2.desktop" + ], + "@/unlock-folders/paper-key-input": [ + "./unlock-folders/paper-key-input.desktop" + ], + "@/unlock-folders/remote-proxy": [ + "./unlock-folders/remote-proxy.desktop" + ], + "@/unlock-folders/success": [ + "./unlock-folders/success.desktop" + ], + "@/util/clipboard": [ + "./util/clipboard.desktop" + ], + "@/util/drag-drop": [ + "./util/drag-drop.desktop" + ], + "@/util/electron": [ + "./util/electron.desktop" + ], + "@/util/feature-flags": [ + "./util/feature-flags.desktop" + ], + "@/util/misc": [ + "./util/misc.desktop" + ], + "@/util/platform-specific/index": [ + "./util/platform-specific/index.desktop" + ], + "@/util/platform-specific/input-monitor": [ + "./util/platform-specific/input-monitor.desktop" + ], + "@/util/storeless-actions": [ + "./util/storeless-actions.desktop" + ], + "@/util/use-intersection-observer": [ + "./util/use-intersection-observer.desktop" + ], + "@/util/use-resize-observer": [ + "./util/use-resize-observer.desktop" + ] + } + } +} diff --git a/shared/tsconfig.paths.native.json b/shared/tsconfig.paths.native.json new file mode 100644 index 000000000000..94dd4fa6d7d6 --- /dev/null +++ b/shared/tsconfig.paths.native.json @@ -0,0 +1,390 @@ +{ + "compilerOptions": { + "paths": { + "@/*": [ + "./*" + ], + "@/app/globals": [ + "./app/globals.native" + ], + "@/app/index": [ + "./app/index.native" + ], + "@/app/main": [ + "./app/main.native" + ], + "@/chat/audio/audio-recorder": [ + "./chat/audio/audio-recorder.native" + ], + "@/chat/audio/audio-send": [ + "./chat/audio/audio-send.native" + ], + "@/chat/audio/audio-video": [ + "./chat/audio/audio-video.native" + ], + "@/chat/conversation/attachment-fullscreen/index": [ + "./chat/conversation/attachment-fullscreen/index.native" + ], + "@/chat/conversation/giphy/index": [ + "./chat/conversation/giphy/index.native" + ], + "@/chat/conversation/header-area/index": [ + "./chat/conversation/header-area/index.native" + ], + "@/chat/conversation/input-area/filepicker-popup/index": [ + "./chat/conversation/input-area/filepicker-popup/index.native" + ], + "@/chat/conversation/input-area/location-popup": [ + "./chat/conversation/input-area/location-popup.native" + ], + "@/chat/conversation/input-area/normal/input": [ + "./chat/conversation/input-area/normal/input.native" + ], + "@/chat/conversation/input-area/normal/moremenu-popup": [ + "./chat/conversation/input-area/normal/moremenu-popup.native" + ], + "@/chat/conversation/input-area/normal/set-explode-popup/index": [ + "./chat/conversation/input-area/normal/set-explode-popup/index.native" + ], + "@/chat/conversation/input-area/suggestors/suggestion-list": [ + "./chat/conversation/input-area/suggestors/suggestion-list.native" + ], + "@/chat/conversation/list-area/index": [ + "./chat/conversation/list-area/index.native" + ], + "@/chat/conversation/messages/attachment/image/imageimpl": [ + "./chat/conversation/messages/attachment/image/imageimpl.native" + ], + "@/chat/conversation/messages/attachment/video/videoimpl": [ + "./chat/conversation/messages/attachment/video/videoimpl.native" + ], + "@/chat/conversation/messages/text/unfurl/unfurl-list/image/video": [ + "./chat/conversation/messages/text/unfurl/unfurl-list/image/video.native" + ], + "@/chat/conversation/messages/wrapper/exploding-height-retainer/index": [ + "./chat/conversation/messages/wrapper/exploding-height-retainer/index.native" + ], + "@/chat/conversation/messages/wrapper/long-pressable/index": [ + "./chat/conversation/messages/wrapper/long-pressable/index.native" + ], + "@/chat/conversation/normal/index": [ + "./chat/conversation/normal/index.native" + ], + "@/chat/conversation/rekey/participant-rekey": [ + "./chat/conversation/rekey/participant-rekey.native" + ], + "@/chat/conversation/rekey/you-rekey": [ + "./chat/conversation/rekey/you-rekey.native" + ], + "@/chat/create-channel/index": [ + "./chat/create-channel/index.native" + ], + "@/chat/inbox/index": [ + "./chat/inbox/index.native" + ], + "@/chat/inbox/row/small-team/swipe-conv-actions/index": [ + "./chat/inbox/row/small-team/swipe-conv-actions/index.native" + ], + "@/chat/inbox/use-header-portal": [ + "./chat/inbox/use-header-portal.native" + ], + "@/chat/inbox-search/background": [ + "./chat/inbox-search/background.native" + ], + "@/chat/location-map": [ + "./chat/location-map.native" + ], + "@/chat/pdf/index": [ + "./chat/pdf/index.native" + ], + "@/common-adapters/animation": [ + "./common-adapters/animation.native" + ], + "@/common-adapters/avatar/index": [ + "./common-adapters/avatar/index.native" + ], + "@/common-adapters/back-button": [ + "./common-adapters/back-button.native" + ], + "@/common-adapters/bottom-accessory": [ + "./common-adapters/bottom-accessory.native" + ], + "@/common-adapters/box": [ + "./common-adapters/box.native" + ], + "@/common-adapters/checkbox": [ + "./common-adapters/checkbox.native" + ], + "@/common-adapters/choice-list": [ + "./common-adapters/choice-list.native" + ], + "@/common-adapters/clickable-box": [ + "./common-adapters/clickable-box.native" + ], + "@/common-adapters/copyable-text": [ + "./common-adapters/copyable-text.native" + ], + "@/common-adapters/drag-and-drop": [ + "./common-adapters/drag-and-drop.native" + ], + "@/common-adapters/emoji/custom-emoji": [ + "./common-adapters/emoji/custom-emoji.native" + ], + "@/common-adapters/emoji/native-emoji": [ + "./common-adapters/emoji/native-emoji.native" + ], + "@/common-adapters/floating-menu/menu-layout/index": [ + "./common-adapters/floating-menu/menu-layout/index.native" + ], + "@/common-adapters/floating-picker": [ + "./common-adapters/floating-picker.native" + ], + "@/common-adapters/header-buttons": [ + "./common-adapters/header-buttons.native" + ], + "@/common-adapters/hot-key": [ + "./common-adapters/hot-key.native" + ], + "@/common-adapters/icon.constants-gen": [ + "./common-adapters/icon.constants-gen.native" + ], + "@/common-adapters/image": [ + "./common-adapters/image.native" + ], + "@/common-adapters/index": [ + "./common-adapters/index.native" + ], + "@/common-adapters/input3": [ + "./common-adapters/input3.native" + ], + "@/common-adapters/keyboard-avoiding-view": [ + "./common-adapters/keyboard-avoiding-view.native" + ], + "@/common-adapters/list": [ + "./common-adapters/list.native" + ], + "@/common-adapters/loading-line": [ + "./common-adapters/loading-line.native" + ], + "@/common-adapters/popup/bottom-sheet": [ + "./common-adapters/popup/bottom-sheet.native" + ], + "@/common-adapters/popup/floating-box/index": [ + "./common-adapters/popup/floating-box/index.native" + ], + "@/common-adapters/popup/index": [ + "./common-adapters/popup/index.native" + ], + "@/common-adapters/portal": [ + "./common-adapters/portal.native" + ], + "@/common-adapters/progress-indicator": [ + "./common-adapters/progress-indicator.native" + ], + "@/common-adapters/radio-button": [ + "./common-adapters/radio-button.native" + ], + "@/common-adapters/safe-area-view": [ + "./common-adapters/safe-area-view.native" + ], + "@/common-adapters/scroll-view": [ + "./common-adapters/scroll-view.native" + ], + "@/common-adapters/swipeable-row": [ + "./common-adapters/swipeable-row.native" + ], + "@/common-adapters/switch-toggle": [ + "./common-adapters/switch-toggle.native" + ], + "@/common-adapters/text-url": [ + "./common-adapters/text-url.native" + ], + "@/common-adapters/text.meta": [ + "./common-adapters/text.meta.native" + ], + "@/common-adapters/text": [ + "./common-adapters/text.native" + ], + "@/common-adapters/text.styles": [ + "./common-adapters/text.styles.native" + ], + "@/common-adapters/toast": [ + "./common-adapters/toast.native" + ], + "@/common-adapters/video": [ + "./common-adapters/video.native" + ], + "@/common-adapters/web-view": [ + "./common-adapters/web-view.native" + ], + "@/common-adapters/with-tooltip": [ + "./common-adapters/with-tooltip.native" + ], + "@/common-adapters/zoomable-image": [ + "./common-adapters/zoomable-image.native" + ], + "@/constants/init/index": [ + "./constants/init/index.native" + ], + "@/constants/init/push-listener": [ + "./constants/init/push-listener.native" + ], + "@/constants/platform": [ + "./constants/platform.native" + ], + "@/crypto/sub-nav/index": [ + "./crypto/sub-nav/index.native" + ], + "@/engine/index": [ + "./engine/index.native" + ], + "@/engine/index.platform": [ + "./engine/index.platform.native" + ], + "@/engine/session": [ + "./engine/session.native" + ], + "@/fs/filepreview/pdf-view": [ + "./fs/filepreview/pdf-view.native" + ], + "@/fs/filepreview/text-view": [ + "./fs/filepreview/text-view.native" + ], + "@/fs/footer/download-wrapper": [ + "./fs/footer/download-wrapper.native" + ], + "@/fs/footer/upload": [ + "./fs/footer/upload.native" + ], + "@/local-debug": [ + "./local-debug.native" + ], + "@/login/forms/container": [ + "./login/forms/container.native" + ], + "@/login/relogin/dropdown": [ + "./login/relogin/dropdown.native" + ], + "@/login/relogin/index": [ + "./login/relogin/index.native" + ], + "@/login/user-card/index": [ + "./login/user-card/index.native" + ], + "@/people/index": [ + "./people/index.native" + ], + "@/profile/edit-avatar/index": [ + "./profile/edit-avatar/index.native" + ], + "@/profile/pgp/choice/index": [ + "./profile/pgp/choice/index.native" + ], + "@/profile/pgp/import/index": [ + "./profile/pgp/import/index.native" + ], + "@/profile/pgp/no-pgp": [ + "./profile/pgp/no-pgp.native" + ], + "@/provision/code-page/qr-scan/index": [ + "./provision/code-page/qr-scan/index.native" + ], + "@/provision/code-page/qr-scan/scanner": [ + "./provision/code-page/qr-scan/scanner.native" + ], + "@/router-v2/common": [ + "./router-v2/common.native" + ], + "@/router-v2/hooks": [ + "./router-v2/hooks.native" + ], + "@/router-v2/router": [ + "./router-v2/router.native" + ], + "@/router-v2/screen-layout": [ + "./router-v2/screen-layout.native" + ], + "@/settings/delete-confirm/check-passphrase": [ + "./settings/delete-confirm/check-passphrase.native" + ], + "@/settings/feedback/container": [ + "./settings/feedback/container.native" + ], + "@/settings/files/index": [ + "./settings/files/index.native" + ], + "@/settings/notifications/index": [ + "./settings/notifications/index.native" + ], + "@/settings/screenprotector/index": [ + "./settings/screenprotector/index.native" + ], + "@/stores/fs-platform": [ + "./stores/fs-platform.native" + ], + "@/stores/push": [ + "./stores/push.native" + ], + "@/stores/settings-contacts": [ + "./stores/settings-contacts.native" + ], + "@/styles/index": [ + "./styles/index.native" + ], + "@/team-building/alphabet-index": [ + "./team-building/alphabet-index.native" + ], + "@/team-building/service-tab-bar": [ + "./team-building/service-tab-bar.native" + ], + "@/teams/add-members-wizard/add-contacts": [ + "./teams/add-members-wizard/add-contacts.native" + ], + "@/teams/common/contacts-list": [ + "./teams/common/contacts-list.native" + ], + "@/teams/common/use-contacts": [ + "./teams/common/use-contacts.native" + ], + "@/teams/invite-by-contact/container": [ + "./teams/invite-by-contact/container.native" + ], + "@/teams/invite-by-contact/index": [ + "./teams/invite-by-contact/index.native" + ], + "@/teams/invite-by-contact/team-invite-by-contacts": [ + "./teams/invite-by-contact/team-invite-by-contacts.native" + ], + "@/util/audio": [ + "./util/audio.native" + ], + "@/util/electron": [ + "./util/electron.native" + ], + "@/util/expo-document-picker": [ + "./util/expo-document-picker.native" + ], + "@/util/expo-image-picker": [ + "./util/expo-image-picker.native" + ], + "@/util/feature-flags": [ + "./util/feature-flags.native" + ], + "@/util/misc": [ + "./util/misc.native" + ], + "@/util/platform-specific/index": [ + "./util/platform-specific/index.native" + ], + "@/util/storeless-actions": [ + "./util/storeless-actions.native" + ], + "@/util/use-intersection-observer": [ + "./util/use-intersection-observer.native" + ], + "@/util/use-resize-observer": [ + "./util/use-resize-observer.native" + ] + } + } +} From b77c97d26ed277f735f78b2c22fca322d5c570c4 Mon Sep 17 00:00:00 2001 From: chrisnojima Date: Thu, 14 May 2026 18:05:30 -0400 Subject: [PATCH 05/28] build: add tsconfig.desktop.json --- shared/tsconfig.desktop.json | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 shared/tsconfig.desktop.json diff --git a/shared/tsconfig.desktop.json b/shared/tsconfig.desktop.json new file mode 100644 index 000000000000..3f3b8321a4f9 --- /dev/null +++ b/shared/tsconfig.desktop.json @@ -0,0 +1,24 @@ +{ + "extends": ["./tsconfig.base.json", "./tsconfig.paths.desktop.json"], + "compilerOptions": { + "lib": ["ESNext", "dom"], + "types": ["jest", "node", "webpack-env"], + "outDir": "./.tsOuts/.tsOut-desktop/emit", + "tsBuildInfoFile": "./.tsOuts/.tsOut-desktop/cache" + }, + "include": ["./**/*.mts", "./**/*.mjs", "./**/*.ts", "./**/*.tsx"], + "exclude": [ + "**/node_modules", + "./desktop/dist", + "./desktop/build", + "./**/*.native.tsx", + "./**/*.native.ts", + "./**/*.android.tsx", + "./**/*.android.ts", + "./**/*.ios.tsx", + "./**/*.ios.ts", + "./common-adapters/icon.constants-gen.desktop.tsx", + "./common-adapters/icon.constants-gen.native.tsx", + "./common-adapters/icon.constants-gen.shared.tsx" + ] +} From 8d220ad8bd79c8f9f44cf53dfbd3b497f9a5e60a Mon Sep 17 00:00:00 2001 From: chrisnojima Date: Fri, 15 May 2026 09:14:00 -0400 Subject: [PATCH 06/28] build: add tsconfig.native.json (errors to fix in subsequent tasks) --- shared/tsconfig.native.json | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 shared/tsconfig.native.json diff --git a/shared/tsconfig.native.json b/shared/tsconfig.native.json new file mode 100644 index 000000000000..ac4c68a9bfd7 --- /dev/null +++ b/shared/tsconfig.native.json @@ -0,0 +1,19 @@ +{ + "extends": ["./tsconfig.base.json", "./tsconfig.paths.native.json"], + "compilerOptions": { + "lib": ["ESNext"], + "types": ["jest", "node"], + "outDir": "./.tsOuts/.tsOut-native/emit", + "tsBuildInfoFile": "./.tsOuts/.tsOut-native/cache" + }, + "include": ["./**/*.mts", "./**/*.mjs", "./**/*.ts", "./**/*.tsx"], + "exclude": [ + "**/node_modules", + "./desktop", + "./**/*.desktop.tsx", + "./**/*.desktop.ts", + "./common-adapters/icon.constants-gen.desktop.tsx", + "./common-adapters/icon.constants-gen.native.tsx", + "./common-adapters/icon.constants-gen.shared.tsx" + ] +} From f45937b2159a300c06e6727e069a8ea87a363032 Mon Sep 17 00:00:00 2001 From: chrisnojima Date: Fri, 15 May 2026 09:20:07 -0400 Subject: [PATCH 07/28] build: delete .d.ts stubs replaced by generated tsconfig paths --- shared/chat/audio/audio-video.d.ts | 11 -- .../attachment-fullscreen/index.d.ts | 11 -- shared/chat/conversation/giphy/index.d.ts | 3 - .../chat/conversation/header-area/index.d.ts | 7 - .../input-area/filepicker-popup/index.d.ts | 12 -- .../input-area/location-popup.d.ts | 3 - .../conversation/input-area/normal/input.d.ts | 79 ---------- .../normal/set-explode-popup/index.d.ts | 13 -- .../suggestors/suggestion-list.d.ts | 17 -- shared/chat/conversation/list-area/index.d.ts | 6 - .../messages/attachment/image/imageimpl.d.ts | 4 - .../messages/attachment/video/videoimpl.d.ts | 10 -- .../text/unfurl/unfurl-list/image/video.d.ts | 10 -- .../exploding-height-retainer/index.d.ts | 14 -- .../wrapper/long-pressable/index.d.ts | 17 -- shared/chat/conversation/normal/index.d.ts | 3 - .../conversation/rekey/participant-rekey.d.ts | 4 - shared/chat/conversation/rekey/you-rekey.d.ts | 8 - shared/chat/create-channel/index.d.ts | 10 -- shared/chat/inbox-search/background.d.ts | 3 - shared/chat/inbox/index.d.ts | 12 -- .../small-team/swipe-conv-actions/index.d.ts | 9 -- shared/chat/inbox/use-header-portal.d.ts | 5 - shared/chat/location-map.d.ts | 9 -- shared/chat/pdf/index.d.ts | 10 -- shared/common-adapters/animation.d.ts | 35 ----- shared/common-adapters/avatar/index.d.ts | 18 --- shared/common-adapters/back-button.d.ts | 17 -- shared/common-adapters/bottom-accessory.d.ts | 3 - shared/common-adapters/box.d.ts | 53 ------- shared/common-adapters/checkbox.d.ts | 20 --- shared/common-adapters/choice-list.d.ts | 17 -- shared/common-adapters/clickable-box.d.ts | 46 ------ shared/common-adapters/copyable-text.d.ts | 9 -- shared/common-adapters/drag-and-drop.d.ts | 17 -- .../common-adapters/emoji/custom-emoji.d.ts | 11 -- .../common-adapters/emoji/native-emoji.d.ts | 13 -- .../floating-menu/menu-layout/index.d.ts | 46 ------ shared/common-adapters/floating-picker.d.ts | 24 --- shared/common-adapters/header-buttons.d.ts | 13 -- shared/common-adapters/hot-key.d.ts | 1 - .../common-adapters/icon.constants-gen.d.ts | 17 -- shared/common-adapters/image.d.ts | 15 -- shared/common-adapters/index.d.ts | 99 ------------ shared/common-adapters/input3.d.ts | 108 ------------- .../keyboard-avoiding-view.d.ts | 16 -- shared/common-adapters/list.d.ts | 84 ---------- shared/common-adapters/loading-line.d.ts | 3 - .../common-adapters/popup/bottom-sheet.d.ts | 10 -- .../popup/floating-box/index.d.ts | 29 ---- shared/common-adapters/popup/index.d.ts | 30 ---- .../common-adapters/progress-indicator.d.ts | 11 -- shared/common-adapters/radio-button.d.ts | 12 -- shared/common-adapters/safe-area-view.d.ts | 17 -- shared/common-adapters/scroll-view.d.ts | 57 ------- shared/common-adapters/switch-toggle.d.ts | 11 -- shared/common-adapters/text-url.d.ts | 5 - shared/common-adapters/text.d.ts | 28 ---- shared/common-adapters/text.styles.d.ts | 2 - shared/common-adapters/toast.d.ts | 16 -- shared/common-adapters/video.d.ts | 23 --- shared/common-adapters/web-view.d.ts | 22 --- shared/common-adapters/with-tooltip.d.ts | 20 --- shared/common-adapters/zoomable-image.d.ts | 24 --- shared/constants/init/index.d.ts | 7 - shared/constants/platform.d.ts | 34 ---- shared/crypto/sub-nav/index.d.ts | 3 - shared/engine/index.d.ts | 35 ----- shared/engine/index.platform.d.ts | 39 ----- shared/engine/session.d.ts | 50 ------ shared/fs/filepreview/pdf-view.d.ts | 9 -- shared/fs/filepreview/text-view.d.ts | 10 -- shared/fs/footer/download-wrapper.d.ts | 11 -- shared/fs/footer/upload.d.ts | 14 -- shared/local-debug.d.ts | 14 -- shared/login/forms/container.d.ts | 12 -- shared/login/relogin/index.d.ts | 22 --- shared/login/user-card/index.d.ts | 15 -- shared/people/index.d.ts | 28 ---- shared/profile/edit-avatar/index.d.ts | 16 -- shared/profile/pgp/choice/index.d.ts | 3 - shared/profile/pgp/import/index.d.ts | 3 - shared/provision/code-page/qr-scan/index.d.ts | 3 - shared/router-v2/common.d.ts | 25 --- shared/router-v2/router.d.ts | 6 - .../delete-confirm/check-passphrase.d.ts | 3 - shared/settings/feedback/container.d.ts | 7 - shared/settings/files/index.d.ts | 6 - shared/settings/notifications/index.d.ts | 3 - shared/settings/screenprotector/index.d.ts | 3 - shared/settings/subheading.d.ts | 8 - shared/stores/fs-platform.d.ts | 65 -------- shared/stores/push.d.ts | 30 ---- shared/stores/settings-contacts.d.ts | 29 ---- shared/styles/index.d.ts | 148 ------------------ shared/team-building/alphabet-index.d.ts | 11 -- shared/team-building/service-tab-bar.d.ts | 24 --- .../add-members-wizard/add-contacts.d.ts | 5 - shared/teams/invite-by-contact/container.d.ts | 4 - shared/util/electron.d.ts | 14 -- shared/util/feature-flags.d.ts | 6 - shared/util/misc.d.ts | 19 --- shared/util/platform-specific/index.d.ts | 19 --- shared/util/storeless-actions.d.ts | 27 ---- shared/util/use-intersection-observer.d.ts | 39 ----- shared/util/use-resize-observer.d.ts | 7 - 106 files changed, 2128 deletions(-) delete mode 100644 shared/chat/audio/audio-video.d.ts delete mode 100644 shared/chat/conversation/attachment-fullscreen/index.d.ts delete mode 100644 shared/chat/conversation/giphy/index.d.ts delete mode 100644 shared/chat/conversation/header-area/index.d.ts delete mode 100644 shared/chat/conversation/input-area/filepicker-popup/index.d.ts delete mode 100644 shared/chat/conversation/input-area/location-popup.d.ts delete mode 100644 shared/chat/conversation/input-area/normal/input.d.ts delete mode 100644 shared/chat/conversation/input-area/normal/set-explode-popup/index.d.ts delete mode 100644 shared/chat/conversation/input-area/suggestors/suggestion-list.d.ts delete mode 100644 shared/chat/conversation/list-area/index.d.ts delete mode 100644 shared/chat/conversation/messages/attachment/image/imageimpl.d.ts delete mode 100644 shared/chat/conversation/messages/attachment/video/videoimpl.d.ts delete mode 100644 shared/chat/conversation/messages/text/unfurl/unfurl-list/image/video.d.ts delete mode 100644 shared/chat/conversation/messages/wrapper/exploding-height-retainer/index.d.ts delete mode 100644 shared/chat/conversation/messages/wrapper/long-pressable/index.d.ts delete mode 100644 shared/chat/conversation/normal/index.d.ts delete mode 100644 shared/chat/conversation/rekey/participant-rekey.d.ts delete mode 100644 shared/chat/conversation/rekey/you-rekey.d.ts delete mode 100644 shared/chat/create-channel/index.d.ts delete mode 100644 shared/chat/inbox-search/background.d.ts delete mode 100644 shared/chat/inbox/index.d.ts delete mode 100644 shared/chat/inbox/row/small-team/swipe-conv-actions/index.d.ts delete mode 100644 shared/chat/inbox/use-header-portal.d.ts delete mode 100644 shared/chat/location-map.d.ts delete mode 100644 shared/chat/pdf/index.d.ts delete mode 100644 shared/common-adapters/animation.d.ts delete mode 100644 shared/common-adapters/avatar/index.d.ts delete mode 100644 shared/common-adapters/back-button.d.ts delete mode 100644 shared/common-adapters/bottom-accessory.d.ts delete mode 100644 shared/common-adapters/box.d.ts delete mode 100644 shared/common-adapters/checkbox.d.ts delete mode 100644 shared/common-adapters/choice-list.d.ts delete mode 100644 shared/common-adapters/clickable-box.d.ts delete mode 100644 shared/common-adapters/copyable-text.d.ts delete mode 100644 shared/common-adapters/drag-and-drop.d.ts delete mode 100644 shared/common-adapters/emoji/custom-emoji.d.ts delete mode 100644 shared/common-adapters/emoji/native-emoji.d.ts delete mode 100644 shared/common-adapters/floating-menu/menu-layout/index.d.ts delete mode 100644 shared/common-adapters/floating-picker.d.ts delete mode 100644 shared/common-adapters/header-buttons.d.ts delete mode 100644 shared/common-adapters/hot-key.d.ts delete mode 100644 shared/common-adapters/icon.constants-gen.d.ts delete mode 100644 shared/common-adapters/image.d.ts delete mode 100644 shared/common-adapters/index.d.ts delete mode 100644 shared/common-adapters/input3.d.ts delete mode 100644 shared/common-adapters/keyboard-avoiding-view.d.ts delete mode 100644 shared/common-adapters/list.d.ts delete mode 100644 shared/common-adapters/loading-line.d.ts delete mode 100644 shared/common-adapters/popup/bottom-sheet.d.ts delete mode 100644 shared/common-adapters/popup/floating-box/index.d.ts delete mode 100644 shared/common-adapters/popup/index.d.ts delete mode 100644 shared/common-adapters/progress-indicator.d.ts delete mode 100644 shared/common-adapters/radio-button.d.ts delete mode 100644 shared/common-adapters/safe-area-view.d.ts delete mode 100644 shared/common-adapters/scroll-view.d.ts delete mode 100644 shared/common-adapters/switch-toggle.d.ts delete mode 100644 shared/common-adapters/text-url.d.ts delete mode 100644 shared/common-adapters/text.d.ts delete mode 100644 shared/common-adapters/text.styles.d.ts delete mode 100644 shared/common-adapters/toast.d.ts delete mode 100644 shared/common-adapters/video.d.ts delete mode 100644 shared/common-adapters/web-view.d.ts delete mode 100644 shared/common-adapters/with-tooltip.d.ts delete mode 100644 shared/common-adapters/zoomable-image.d.ts delete mode 100644 shared/constants/init/index.d.ts delete mode 100644 shared/constants/platform.d.ts delete mode 100644 shared/crypto/sub-nav/index.d.ts delete mode 100644 shared/engine/index.d.ts delete mode 100644 shared/engine/index.platform.d.ts delete mode 100644 shared/engine/session.d.ts delete mode 100644 shared/fs/filepreview/pdf-view.d.ts delete mode 100644 shared/fs/filepreview/text-view.d.ts delete mode 100644 shared/fs/footer/download-wrapper.d.ts delete mode 100644 shared/fs/footer/upload.d.ts delete mode 100644 shared/local-debug.d.ts delete mode 100644 shared/login/forms/container.d.ts delete mode 100644 shared/login/relogin/index.d.ts delete mode 100644 shared/login/user-card/index.d.ts delete mode 100644 shared/people/index.d.ts delete mode 100644 shared/profile/edit-avatar/index.d.ts delete mode 100644 shared/profile/pgp/choice/index.d.ts delete mode 100644 shared/profile/pgp/import/index.d.ts delete mode 100644 shared/provision/code-page/qr-scan/index.d.ts delete mode 100644 shared/router-v2/common.d.ts delete mode 100644 shared/router-v2/router.d.ts delete mode 100644 shared/settings/delete-confirm/check-passphrase.d.ts delete mode 100644 shared/settings/feedback/container.d.ts delete mode 100644 shared/settings/files/index.d.ts delete mode 100644 shared/settings/notifications/index.d.ts delete mode 100644 shared/settings/screenprotector/index.d.ts delete mode 100644 shared/settings/subheading.d.ts delete mode 100644 shared/stores/fs-platform.d.ts delete mode 100644 shared/stores/push.d.ts delete mode 100644 shared/stores/settings-contacts.d.ts delete mode 100644 shared/styles/index.d.ts delete mode 100644 shared/team-building/alphabet-index.d.ts delete mode 100644 shared/team-building/service-tab-bar.d.ts delete mode 100644 shared/teams/add-members-wizard/add-contacts.d.ts delete mode 100644 shared/teams/invite-by-contact/container.d.ts delete mode 100644 shared/util/electron.d.ts delete mode 100644 shared/util/feature-flags.d.ts delete mode 100644 shared/util/misc.d.ts delete mode 100644 shared/util/platform-specific/index.d.ts delete mode 100644 shared/util/storeless-actions.d.ts delete mode 100644 shared/util/use-intersection-observer.d.ts delete mode 100644 shared/util/use-resize-observer.d.ts diff --git a/shared/chat/audio/audio-video.d.ts b/shared/chat/audio/audio-video.d.ts deleted file mode 100644 index 96f14fa2e438..000000000000 --- a/shared/chat/audio/audio-video.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import type * as React from 'react' - -export type Props = { - url: string - paused: boolean - onPositionUpdated: (ratio: number) => void - onEnded: () => void -} - -declare const AudioVideo: (p: Props) => React.ReactNode -export default AudioVideo diff --git a/shared/chat/conversation/attachment-fullscreen/index.d.ts b/shared/chat/conversation/attachment-fullscreen/index.d.ts deleted file mode 100644 index 9747ce44f8d4..000000000000 --- a/shared/chat/conversation/attachment-fullscreen/index.d.ts +++ /dev/null @@ -1,11 +0,0 @@ -import type * as React from 'react' -import type * as T from '@/constants/types' - -export type Props = { - conversationIDKey: T.Chat.ConversationIDKey - initialMessage?: T.Chat.MessageAttachment - messageID: T.Chat.MessageID - showHeader?: boolean -} -declare const Fullscreen: (p: Props) => React.ReactNode -export default Fullscreen diff --git a/shared/chat/conversation/giphy/index.d.ts b/shared/chat/conversation/giphy/index.d.ts deleted file mode 100644 index 59d9869ce8e6..000000000000 --- a/shared/chat/conversation/giphy/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type * as React from 'react' -declare const GiphySearch: () => React.ReactNode -export default GiphySearch diff --git a/shared/chat/conversation/header-area/index.d.ts b/shared/chat/conversation/header-area/index.d.ts deleted file mode 100644 index c8820f5b72e6..000000000000 --- a/shared/chat/conversation/header-area/index.d.ts +++ /dev/null @@ -1,7 +0,0 @@ -import type {GetOptionsRet} from '@/constants/types/router' -import type * as T from '@/constants/types' - -declare function headerNavigationOptions(route: { - params?: {conversationIDKey?: T.Chat.ConversationIDKey} -}): Partial -export {headerNavigationOptions} diff --git a/shared/chat/conversation/input-area/filepicker-popup/index.d.ts b/shared/chat/conversation/input-area/filepicker-popup/index.d.ts deleted file mode 100644 index 7b42f954414c..000000000000 --- a/shared/chat/conversation/input-area/filepicker-popup/index.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import type * as React from 'react' -import type * as Kb from '@/common-adapters' - -export type Props = { - attachTo?: React.RefObject - visible: boolean - onHidden: () => void - onSelect: (mediaType: 'photo' | 'video' | 'mixed' | 'file', location: 'camera' | 'library' | 'file') => void -} - -export declare const FilePickerPopup: (p: Props) => React.ReactNode -export default FilePickerPopup diff --git a/shared/chat/conversation/input-area/location-popup.d.ts b/shared/chat/conversation/input-area/location-popup.d.ts deleted file mode 100644 index 251868e41272..000000000000 --- a/shared/chat/conversation/input-area/location-popup.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type * as React from 'react' -declare const LocationPopup: () => React.ReactNode -export default LocationPopup diff --git a/shared/chat/conversation/input-area/normal/input.d.ts b/shared/chat/conversation/input-area/normal/input.d.ts deleted file mode 100644 index c922050bb01b..000000000000 --- a/shared/chat/conversation/input-area/normal/input.d.ts +++ /dev/null @@ -1,79 +0,0 @@ -import type * as React from 'react' -import type * as T from '@/constants/types' -import type * as Styles from '@/styles' -import type {TextType} from '@/common-adapters/text.shared' -import type {TextInputProps} from 'react-native' - -export type RefType = { - blur: () => void - clear: () => void - focus: () => void - getSelection: () => Selection | undefined - isFocused: () => boolean - transformText: (fn: (textInfo: TextInfo) => TextInfo, reflectChange: boolean) => void - value: string - getBoundingClientRect?: () => - | undefined - | { - x: number - y: number - width: number - height: number - left: number - top: number - right: number - bottom: number - } -} - -export type Selection = { - start: number - end?: number -} -export type TextInfo = { - text: string - selection?: Selection -} -export type Props = { - allowKeyboardEvents?: boolean - disabled?: boolean - autoFocus?: boolean - autoCorrect?: boolean - onBlur?: TextInputProps['onBlur'] - onFocus?: TextInputProps['onFocus'] - onSelectionChange?: TextInputProps['onSelectionChange'] - autoCapitalize?: TextInputProps['autoCapitalize'] - onKeyDown?: (e: React.KeyboardEvent) => void - onKeyUp?: (e: React.KeyboardEvent) => void - onEnterKeyDown?: (e?: React.KeyboardEvent) => void - placeholder?: string - className?: string - ref?: React.Ref - textType?: TextType - style?: Styles.StylesCrossPlatform - onChangeText?: (value: string) => void - onPasteImage?: (uris: Array) => void // mobile only - multiline?: boolean - rowsMin?: number - rowsMax?: number - padding?: keyof typeof Styles.globalMargins | 0 // globalMargins does not have an option for 0 -} - -export type PlatformInputProps = { - cannotWrite: boolean - explodingModeSeconds: number - setExplodingMode: (mode: number) => void - hintText: string - setInputRef: (r: RefType | null) => void - isEditing: boolean - isExploding: boolean - minWriterRole: T.Teams.TeamRoleType - onCancelEditing: () => void - onChangeText: (newText: string) => void - onSubmit: (text: string) => void - showReplyPreview: boolean - suggestionOverlayStyle: Styles.StylesCrossPlatform -} - -declare const PlatformInput: (p: PlatformInputProps) => React.ReactNode -export default PlatformInput diff --git a/shared/chat/conversation/input-area/normal/set-explode-popup/index.d.ts b/shared/chat/conversation/input-area/normal/set-explode-popup/index.d.ts deleted file mode 100644 index cc197173b1ba..000000000000 --- a/shared/chat/conversation/input-area/normal/set-explode-popup/index.d.ts +++ /dev/null @@ -1,13 +0,0 @@ -import type * as React from 'react' -import type * as Kb from '@/common-adapters' - -export type Props = { - attachTo?: React.RefObject - onAfterSelect?: (s: number) => void - onHidden: () => void - visible: boolean - setExplodingMode: (mode: number) => void -} - -export declare const SetExplodingPopup: (p: Props) => React.ReactNode -export default SetExplodingPopup diff --git a/shared/chat/conversation/input-area/suggestors/suggestion-list.d.ts b/shared/chat/conversation/input-area/suggestors/suggestion-list.d.ts deleted file mode 100644 index 7a228f8ed5e9..000000000000 --- a/shared/chat/conversation/input-area/suggestors/suggestion-list.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import type * as React from 'react' -import type * as Styles from '@/styles' -import type * as T from '@/constants/types' - -export type Props = { - // TODO fix this type - items: Array - keyExtractor?: (item: I, idx: number) => string - renderItem: (index: number, item: I) => React.ReactElement - selectedIndex: number - style?: Styles.StylesCrossPlatform - // likely doesn't belong here - suggestBotCommandsUpdateStatus?: T.RPCChat.UIBotCommandsUpdateStatusTyp -} - -declare function SuggestionList(p: Props): React.ReactNode -export default SuggestionList diff --git a/shared/chat/conversation/list-area/index.d.ts b/shared/chat/conversation/list-area/index.d.ts deleted file mode 100644 index 331afdd4a4ac..000000000000 --- a/shared/chat/conversation/list-area/index.d.ts +++ /dev/null @@ -1,6 +0,0 @@ -import type * as React from 'react' -import type * as T from '@/constants/types' - -export type ItemType = T.Chat.Ordinal -declare const ConversationList: () => React.ReactNode -export default ConversationList diff --git a/shared/chat/conversation/messages/attachment/image/imageimpl.d.ts b/shared/chat/conversation/messages/attachment/image/imageimpl.d.ts deleted file mode 100644 index 1f586de3e41f..000000000000 --- a/shared/chat/conversation/messages/attachment/image/imageimpl.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import type * as React from 'react' -import type * as T from '@/constants/types' -declare const ImageImpl: (p: {message: T.Chat.MessageAttachment}) => React.ReactNode -export default ImageImpl diff --git a/shared/chat/conversation/messages/attachment/video/videoimpl.d.ts b/shared/chat/conversation/messages/attachment/video/videoimpl.d.ts deleted file mode 100644 index ad172665d5fc..000000000000 --- a/shared/chat/conversation/messages/attachment/video/videoimpl.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type * as React from 'react' -import type * as T from '@/constants/types' -export type Props = { - openFullscreen?: () => void - showPopup?: () => void - allowPlay: boolean - message: T.Chat.MessageAttachment -} -declare const VideoImpl: (p: Props) => React.ReactNode -export default VideoImpl diff --git a/shared/chat/conversation/messages/text/unfurl/unfurl-list/image/video.d.ts b/shared/chat/conversation/messages/text/unfurl/unfurl-list/image/video.d.ts deleted file mode 100644 index 2f50512c9794..000000000000 --- a/shared/chat/conversation/messages/text/unfurl/unfurl-list/image/video.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type * as React from 'react' -export type Props = { - autoPlay: boolean - height: number - style: object - onClick?: () => void - url: string - width: number -} -export declare const Video: (p: Props) => React.ReactNode diff --git a/shared/chat/conversation/messages/wrapper/exploding-height-retainer/index.d.ts b/shared/chat/conversation/messages/wrapper/exploding-height-retainer/index.d.ts deleted file mode 100644 index 0bcd5385324f..000000000000 --- a/shared/chat/conversation/messages/wrapper/exploding-height-retainer/index.d.ts +++ /dev/null @@ -1,14 +0,0 @@ -import type * as React from 'react' -import type * as Styles from '@/styles' -export type Props = { - children?: React.ReactElement - explodedBy?: string - exploding: boolean - messageKey: string - style?: Styles.StylesCrossPlatform - retainHeight: boolean -} -export declare const animationDuration: number - -declare const ExplodingHeightRetainer: (p: Props) => React.ReactNode -export default ExplodingHeightRetainer diff --git a/shared/chat/conversation/messages/wrapper/long-pressable/index.d.ts b/shared/chat/conversation/messages/wrapper/long-pressable/index.d.ts deleted file mode 100644 index 18fc12940d48..000000000000 --- a/shared/chat/conversation/messages/wrapper/long-pressable/index.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import type * as React from 'react' -import type * as Kb from '@/common-adapters' - -export type Props = { - children: React.ReactNode - // mobile - onLongPress?: () => void - onSwipeLeft?: () => void - style?: Kb.Styles.StylesCrossPlatform - - // desktop - className?: string - onContextMenu?: () => void - onMouseOver?: () => void -} -declare function LongPressable(props: Props & {ref?: React.Ref}): React.ReactNode -export default LongPressable diff --git a/shared/chat/conversation/normal/index.d.ts b/shared/chat/conversation/normal/index.d.ts deleted file mode 100644 index 793bdbc73b37..000000000000 --- a/shared/chat/conversation/normal/index.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type * as React from 'react' -declare const Conversation: () => React.ReactNode -export default Conversation diff --git a/shared/chat/conversation/rekey/participant-rekey.d.ts b/shared/chat/conversation/rekey/participant-rekey.d.ts deleted file mode 100644 index bcebcfb2be06..000000000000 --- a/shared/chat/conversation/rekey/participant-rekey.d.ts +++ /dev/null @@ -1,4 +0,0 @@ -import type * as React from 'react' -import type {Props} from './participant-rekey.types' -declare const ParticipantRekey: (p: Props) => React.ReactNode -export default ParticipantRekey diff --git a/shared/chat/conversation/rekey/you-rekey.d.ts b/shared/chat/conversation/rekey/you-rekey.d.ts deleted file mode 100644 index a0524ad922a3..000000000000 --- a/shared/chat/conversation/rekey/you-rekey.d.ts +++ /dev/null @@ -1,8 +0,0 @@ -import type * as React from 'react' -export type Props = { - onEnterPaperkey: () => void - onBack: () => void - onRekey: () => void -} -declare const YouRekey: (p: Props) => React.ReactNode -export default YouRekey diff --git a/shared/chat/create-channel/index.d.ts b/shared/chat/create-channel/index.d.ts deleted file mode 100644 index 393df8320e08..000000000000 --- a/shared/chat/create-channel/index.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type * as React from 'react' -import type * as T from '@/constants/types' - -export type Props = { - navToChatOnSuccess?: boolean - teamID: T.Teams.TeamID -} - -declare const CreateChannel: (p: Props) => React.ReactNode -export default CreateChannel diff --git a/shared/chat/inbox-search/background.d.ts b/shared/chat/inbox-search/background.d.ts deleted file mode 100644 index 5a40c413050a..000000000000 --- a/shared/chat/inbox-search/background.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type * as React from 'react' -declare const Background: () => React.ReactNode -export default Background diff --git a/shared/chat/inbox/index.d.ts b/shared/chat/inbox/index.d.ts deleted file mode 100644 index 760c639820a8..000000000000 --- a/shared/chat/inbox/index.d.ts +++ /dev/null @@ -1,12 +0,0 @@ -import type * as React from 'react' -import type {ChatRootInboxRefresh, ConversationIDKey} from '@/constants/types/chat' -import type {InboxSearchController} from './use-inbox-search' - -type Props = { - conversationIDKey?: ConversationIDKey - refreshInbox?: ChatRootInboxRefresh - search?: InboxSearchController -} - -declare const Inbox: (p: Props) => React.ReactNode -export default Inbox diff --git a/shared/chat/inbox/row/small-team/swipe-conv-actions/index.d.ts b/shared/chat/inbox/row/small-team/swipe-conv-actions/index.d.ts deleted file mode 100644 index d5416a709028..000000000000 --- a/shared/chat/inbox/row/small-team/swipe-conv-actions/index.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import type * as React from 'react' -import type {ConversationIDKey} from '@/constants/types/chat' -export type Props = { - children: React.ReactNode - conversationIDKey: ConversationIDKey - onPress?: () => void -} -declare const SwipeConvActions: (p: Props) => React.ReactNode -export default SwipeConvActions diff --git a/shared/chat/inbox/use-header-portal.d.ts b/shared/chat/inbox/use-header-portal.d.ts deleted file mode 100644 index 7c368a6e0392..000000000000 --- a/shared/chat/inbox/use-header-portal.d.ts +++ /dev/null @@ -1,5 +0,0 @@ -import type * as React from 'react' -import type {InboxSearchController} from './use-inbox-search' - -declare const useInboxHeaderPortal: (search: InboxSearchController) => React.ReactNode -export default useInboxHeaderPortal diff --git a/shared/chat/location-map.d.ts b/shared/chat/location-map.d.ts deleted file mode 100644 index 80826dcc1fd2..000000000000 --- a/shared/chat/location-map.d.ts +++ /dev/null @@ -1,9 +0,0 @@ -import type * as React from 'react' -type Props = { - height: number - mapSrc: string - onLoad?: () => void - width: number -} -declare const LocationMap: (p: Props) => React.ReactNode -export default LocationMap diff --git a/shared/chat/pdf/index.d.ts b/shared/chat/pdf/index.d.ts deleted file mode 100644 index a39e8c894b00..000000000000 --- a/shared/chat/pdf/index.d.ts +++ /dev/null @@ -1,10 +0,0 @@ -import type * as React from 'react' -import type * as T from '@/constants/types' - -export type Props = { - conversationIDKey?: T.Chat.ConversationIDKey - messageID: T.Chat.MessageID - url?: string -} -declare const ChatPDF: (p: Props) => React.ReactNode -export default ChatPDF diff --git a/shared/common-adapters/animation.d.ts b/shared/common-adapters/animation.d.ts deleted file mode 100644 index ee35e14884e5..000000000000 --- a/shared/common-adapters/animation.d.ts +++ /dev/null @@ -1,35 +0,0 @@ -import type * as React from 'react' -import type * as Styles from '@/styles' - -export type AnimationType = - | 'darkMessageStatusEncrypting' - | 'darkMessageStatusEncryptingExploding' - | 'darkMessageStatusError' - | 'darkMessageStatusSending' - | 'darkMessageStatusSendingExploding' - | 'darkMessageStatusSent' - | 'darkExploding' - | 'disconnected' - | 'exploding' - | 'loadingInfinity' - | 'messageStatusEncrypting' - | 'messageStatusEncryptingExploding' - | 'messageStatusError' - | 'messageStatusSending' - | 'messageStatusSendingExploding' - | 'messageStatusSent' - | 'spinner' - | 'spinnerWhite' - | 'typing' - -export type Props = { - animationType: AnimationType - className?: string - containerStyle?: Styles.StylesCrossPlatform - height?: number - style?: Styles.StylesCrossPlatform - width?: number -} - -declare const Animation: (p: Props) => React.ReactNode -export default Animation diff --git a/shared/common-adapters/avatar/index.d.ts b/shared/common-adapters/avatar/index.d.ts deleted file mode 100644 index 31e4ea71bb51..000000000000 --- a/shared/common-adapters/avatar/index.d.ts +++ /dev/null @@ -1,18 +0,0 @@ -import type * as React from 'react' -import type * as Styles from '@/styles' -import type * as T from '@/constants/types' - -type Props = { - children?: React.ReactNode - crop?: T.Teams.AvatarCrop - imageOverrideUrl?: string - isTeam?: boolean - onClick?: ((e?: React.BaseSyntheticEvent) => void) | 'profile' - size: 128 | 96 | 64 | 48 | 32 | 24 | 16 - style?: Styles.CustomStyles<'borderStyle'> - teamname?: string - username?: string -} - -declare const Avatar: (p: Props) => React.ReactNode -export default Avatar diff --git a/shared/common-adapters/back-button.d.ts b/shared/common-adapters/back-button.d.ts deleted file mode 100644 index 0a937a328fc2..000000000000 --- a/shared/common-adapters/back-button.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import type * as React from 'react' -import type {Color, StylesCrossPlatform} from '@/styles' - -export type Props = { - badgeNumber?: number - hideBackLabel?: boolean - onClick?: () => void // if undefined will give you a navigate up - disabled?: boolean - onPress?: never - iconColor?: Color - textStyle?: StylesCrossPlatform - style?: StylesCrossPlatform - title?: string -} - -declare const BackButton: (p: Props) => React.ReactNode -export default BackButton diff --git a/shared/common-adapters/bottom-accessory.d.ts b/shared/common-adapters/bottom-accessory.d.ts deleted file mode 100644 index ced298e315a9..000000000000 --- a/shared/common-adapters/bottom-accessory.d.ts +++ /dev/null @@ -1,3 +0,0 @@ -import type * as React from 'react' - -export declare const BottomAccessory: (p: {children: React.ReactNode}) => React.ReactNode diff --git a/shared/common-adapters/box.d.ts b/shared/common-adapters/box.d.ts deleted file mode 100644 index 9f437f627c27..000000000000 --- a/shared/common-adapters/box.d.ts +++ /dev/null @@ -1,53 +0,0 @@ -import type * as React from 'react' -import type {StylesCrossPlatform, globalMargins} from '@/styles' -import type {NativeSyntheticEvent} from 'react-native' -import type {MeasureRef} from './measure-ref' - -export type LayoutEvent = NativeSyntheticEvent<{ - layout: { - x: number - y: number - width: number - height: number - } -}> - -export type Box2Props = { - alignItems?: 'center' | 'flex-start' | 'flex-end' | 'stretch' - alignSelf?: 'center' | 'flex-start' | 'flex-end' | 'stretch' - children?: React.ReactNode - centerChildren?: boolean - className?: string - collapsable?: boolean - direction: 'horizontal' | 'vertical' | 'horizontalReverse' | 'verticalReverse' - flex?: number - fullHeight?: boolean - fullWidth?: boolean - justifyContent?: 'center' | 'flex-start' | 'flex-end' | 'space-between' | 'space-around' | 'space-evenly' - noShrink?: boolean - overflow?: 'hidden' | 'scroll' | 'visible' | 'auto' - onDragLeave?: (syntheticDragEvent: React.DragEvent) => void // desktop only - onDragOver?: (syntheticDragEvent: React.DragEvent) => void // desktop only - onDrop?: (syntheticDragEvent: React.DragEvent) => void // desktop only - onLayout?: (evt: LayoutEvent) => void // mobile only - onMouseDown?: (syntheticEvent: React.MouseEvent) => void // desktop only - onMouseMove?: (syntheticEvent: React.MouseEvent) => void // desktop only - onMouseLeave?: (syntheticEvent: React.MouseEvent) => void // desktop only - onMouseUp?: (syntheticEvent: React.MouseEvent) => void // desktop only - onMouseOver?: (syntheticEvent: React.MouseEvent) => void // desktop only - onCopyCapture?: (syntheticEvent: React.SyntheticEvent) => void // desktop only - onContextMenu?: () => void // desktop only - padding?: keyof typeof globalMargins - pointerEvents?: 'none' | 'box-none' - relative?: boolean - style?: StylesCrossPlatform - gap?: keyof typeof globalMargins - gapStart?: boolean - gapEnd?: boolean - title?: string - tooltip?: string -} - -export declare function Box2(p: Box2Props & {ref?: React.Ref}): React.ReactNode -// wrapped by reanimated -export declare function Box2Animated(p: Box2Props & {ref?: React.Ref}): React.ReactNode diff --git a/shared/common-adapters/checkbox.d.ts b/shared/common-adapters/checkbox.d.ts deleted file mode 100644 index cbd54309781c..000000000000 --- a/shared/common-adapters/checkbox.d.ts +++ /dev/null @@ -1,20 +0,0 @@ -import type * as React from 'react' -import type * as Styles from '@/styles' -import type {TextType} from './text.shared' - -export type Props = { - key?: string - label?: string | React.ReactNode - checkboxColor?: Styles.Color - checkboxStyle?: Styles.StylesCrossPlatform - labelComponent?: React.ReactNode - labelSubtitle?: string - labelType?: TextType - onCheck?: (newCheckedValue: boolean) => void - checked: boolean - style?: Styles.StylesCrossPlatform - disabled?: boolean -} - -declare const Checkbox: (p: Props) => React.ReactNode -export default Checkbox diff --git a/shared/common-adapters/choice-list.d.ts b/shared/common-adapters/choice-list.d.ts deleted file mode 100644 index b65f8efd870c..000000000000 --- a/shared/common-adapters/choice-list.d.ts +++ /dev/null @@ -1,17 +0,0 @@ -import type * as React from 'react' -import type {IconType} from './icon' - -export type Option = { - title: string - description: string - icon: IconType - onClick: () => void - onPress?: never -} - -export type Props = { - options: Array