Skip to content

Commit

Permalink
TS提示类型过于复杂 (#2703)
Browse files Browse the repository at this point in the history
TS提示类型过于复杂
  • Loading branch information
czewail authored Jan 2, 2025
1 parent a6f550a commit 5be2d1c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/plots/src/components/tiny/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,4 @@ export type { TinyColumnConfig } from './column';
export type { TinyProgressConfig } from './progress';
export type { TinyRingConfig } from './ring';

type TinyOptions = Record<string, typeof Line | typeof Area | typeof Column | typeof Progress | typeof Ring>;

export const Tiny: TinyOptions = { Line, Area, Column, Progress, Ring };
export const Tiny = { Line, Area, Column, Progress, Ring } as const;

0 comments on commit 5be2d1c

Please sign in to comment.