feat: 完成一大波类型修复, 虽然 any 很多

This commit is contained in:
claude-code-best
2026-03-31 23:43:39 +08:00
parent dd9cd782a7
commit 91f77ea571
55 changed files with 156 additions and 81 deletions

View File

@@ -93,11 +93,11 @@ export async function handleUrlSchemeLaunch(): Promise<number | null> {
try {
const { waitForUrlEvent } = await import('url-handler-napi')
const url = waitForUrlEvent(5000)
const url = (waitForUrlEvent as any)(5000)
if (!url) {
return null
}
return await handleDeepLinkUri(url)
return await handleDeepLinkUri(await url as string)
} catch {
// NAPI module not available, or handleDeepLinkUri rejected — not a URL launch
return null