chore(knip): trim dead exports and tool noise

This commit is contained in:
plebeius
2026-03-08 16:37:34 +08:00
parent b2137c7f91
commit 90a01057f2
30 changed files with 106 additions and 383 deletions
+1 -1
View File
@@ -2,7 +2,7 @@ import type { ProviderAttempt } from './types';
export type { ProviderAttempt } from './types';
export type TranslateFn = (key: string) => string;
type TranslateFn = (key: string) => string;
function formatSingleAttempt(a: ProviderAttempt): string {
const base = `${a.provider}: ${a.error ?? 'unknown'}`;
+1 -4
View File
@@ -1,6 +1,6 @@
import type { MediaHostingRuntime, ProviderId } from './types';
export interface ProviderDefinition {
interface ProviderDefinition {
id: ProviderId;
label: string;
homepageUrl: string;
@@ -23,6 +23,3 @@ export const MEDIA_HOSTING_PROVIDERS: readonly ProviderDefinition[] = [
supportedRuntimes: ['electron', 'android'],
},
] as const;
/** Provider IDs for ordering */
export const PROVIDER_IDS: readonly ProviderId[] = MEDIA_HOSTING_PROVIDERS.map((p) => p.id);