typescript-typenfehler behoben.. npm run lint läuft nun fehlerfrei durch.

This commit is contained in:
Codex Agent
2025-11-22 11:49:47 +01:00
parent 6c78d7e281
commit eb41cb6194
74 changed files with 469 additions and 396 deletions

View File

@@ -43,8 +43,8 @@ export async function sharePhotoLink(options: ShareOptions): Promise<{ url: stri
try {
await navigator.share(shareData);
return { url: payload.url, method: 'native' };
} catch (error: any) {
if (error?.name === 'AbortError') {
} catch (error: unknown) {
if (error && typeof error === 'object' && 'name' in error && (error as { name?: string }).name === 'AbortError') {
return { url: payload.url, method: 'native' };
}
// fall through to clipboard