From b67c81c12a56b46fe551618becbbddc14b5d8bea Mon Sep 17 00:00:00 2001 From: Tunglies <77394545+Tunglies@users.noreply.github.com> Date: Wed, 28 Oct 2026 06:33:08 +0800 Subject: [PATCH] refactor(types): remove dead provider view types superseded by bindings Drop the handwritten IProxyProviderItem and IRuleProviderItem interfaces: IProxyProviderItem is a stale duplicate of the generated ProxyProviderView contract, and neither has any references left in the tree. Keep IProxyItem and IProxyGroupItem: IConfigData still declares 'proxy-groups'?: IProxyGroupItem[], which builds on IProxyItem. --- src/types/global.d.ts | 24 ------------------------ 1 file changed, 24 deletions(-) diff --git a/src/types/global.d.ts b/src/types/global.d.ts index 815630ca2..c34125bc7 100644 --- a/src/types/global.d.ts +++ b/src/types/global.d.ts @@ -105,30 +105,6 @@ type IProxyGroupItem = Omit & { all: IProxyItem[] } -interface IProxyProviderItem { - name: string - type: string - proxies: IProxyItem[] - updatedAt: string - vehicleType: string - subscriptionInfo?: { - Upload: number - Download: number - Total: number - Expire: number - } -} - -interface IRuleProviderItem { - name: string - behavior: string - format: string - ruleCount: number - type: string - updatedAt: string - vehicleType: string -} - interface ITrafficItem { up: number down: number