diff --git a/types/fnando__sparkline/fnando__sparkline-tests.ts b/types/fnando__sparkline/fnando__sparkline-tests.ts index 8c09cfe4d0..713774ce32 100644 --- a/types/fnando__sparkline/fnando__sparkline-tests.ts +++ b/types/fnando__sparkline/fnando__sparkline-tests.ts @@ -4,7 +4,7 @@ import { sparkline } from '@fnando/sparkline'; import * as sparkline2 from '@fnando/sparkline'; import sparkline3 from '@fnando/sparkline'; -const svg = document.createElement('svg') as any as SVGElement; +const svg = document.createElement('svg') as any as SVGSVGElement; // number entries sparkline(svg, [1, 2, 3]); diff --git a/types/fnando__sparkline/index.d.ts b/types/fnando__sparkline/index.d.ts index f8ade4e86f..e6ae8a2451 100644 --- a/types/fnando__sparkline/index.d.ts +++ b/types/fnando__sparkline/index.d.ts @@ -49,7 +49,7 @@ type SparklineNonNativeOptions = SparklineOptions | SparklineOptionsFetc * @param entries You can either provide an array of numbers or an array of objects that respond to .value. If you have a different data structure, see options.fetch. * @param options This optional argument allows you to further customize the sparkline. */ -export function sparkline(svg: SVGElement, entries: TEntry[], options?: SparklineNativeOptions): string; -export function sparkline(svg: SVGElement, entries: TEntry[], options: SparklineNonNativeOptions): string; +export function sparkline(svg: SVGSVGElement, entries: TEntry[], options?: SparklineNativeOptions): string; +export function sparkline(svg: SVGSVGElement, entries: TEntry[], options: SparklineNonNativeOptions): string; export default sparkline;