From 9bb301b5b7c53f25161dc2c329559a2cda3ca5b2 Mon Sep 17 00:00:00 2001 From: Zewail Date: Fri, 20 Sep 2024 11:31:41 +0800 Subject: [PATCH] =?UTF-8?q?TS=E6=8F=90=E7=A4=BA=E7=B1=BB=E5=9E=8B=E8=BF=87?= =?UTF-8?q?=E4=BA=8E=E5=A4=8D=E6=9D=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit TS提示类型过于复杂 --- packages/plots/src/components/tiny/index.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/packages/plots/src/components/tiny/index.ts b/packages/plots/src/components/tiny/index.ts index 083c0962f..bdebd4ab7 100644 --- a/packages/plots/src/components/tiny/index.ts +++ b/packages/plots/src/components/tiny/index.ts @@ -10,6 +10,4 @@ export type { TinyColumnConfig } from './column'; export type { TinyProgressConfig } from './progress'; export type { TinyRingConfig } from './ring'; -type TinyOptions = Record; - -export const Tiny: TinyOptions = { Line, Area, Column, Progress, Ring }; +export const Tiny = { Line, Area, Column, Progress, Ring } as const;