Skip to content

Commit

Permalink
update types
Browse files Browse the repository at this point in the history
  • Loading branch information
plainheart committed Sep 30, 2022
1 parent a25bbc9 commit fc57ac2
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions export.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -14,15 +14,14 @@ type TuplifyUnion<T, L = LastOf<T>, N = [T] extends [never] ? true : false> =

type EChartsExtensionInstallRegisters = Parameters<TuplifyUnion<Parameters<typeof use>[0]>[0]>[0]

type EChartsRegisters = EChartsExtensionInstallRegisters extends never
export type EChartsExtensionRegisters = EChartsExtensionInstallRegisters extends never
? typeof EChartsV4
: EChartsExtensionInstallRegisters

/**
* To install AMap component
* @param registersregisters echarts registers. If using v4, it should be echarts namespace.
* @param registers echarts registers. If using v4, it should be echarts namespace.
*/
declare function install(registers: EChartsRegisters): void
export declare function install(registers: EChartsExtensionRegisters): void

export * from './types'
export { install }

0 comments on commit fc57ac2

Please sign in to comment.