mirror of
https://github.com/ecomfe/vue-echarts.git
synced 2025-08-18 23:03:58 +08:00
refactor: switch to generated .d.ts (#835)
* build: generate d.ts * fix: preserve PublicMethods * fix: avoid exposing types of attrs * refactor: use existing setoption type * fix: expose root and chart * feat: use symbol as injection key * chore: add comment for the type casting of the exposed
This commit is contained in:
@ -21,7 +21,7 @@ const METHOD_NAMES = [
|
||||
|
||||
type MethodName = (typeof METHOD_NAMES)[number];
|
||||
|
||||
type PublicMethods = Pick<EChartsType, MethodName>;
|
||||
export type PublicMethods = Pick<EChartsType, MethodName>;
|
||||
|
||||
export function usePublicAPI(
|
||||
chart: Ref<EChartsType | undefined>,
|
||||
|
Reference in New Issue
Block a user