mirror of
https://github.com/bitsocialnet/5chan.git
synced 2026-08-03 07:41:04 +02:00
chore(knip): trim dead exports and tool noise
This commit is contained in:
@@ -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,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);
|
||||
|
||||
Reference in New Issue
Block a user