From d26d9086209cd754422609f8c9f3b8f4d1fc9189 Mon Sep 17 00:00:00 2001 From: Don McCurdy Date: Wed, 25 Sep 2024 16:32:10 -0400 Subject: [PATCH] fix type error --- src/sources/wrappers.ts | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/src/sources/wrappers.ts b/src/sources/wrappers.ts index e7c8065..9027841 100644 --- a/src/sources/wrappers.ts +++ b/src/sources/wrappers.ts @@ -81,7 +81,7 @@ export async function h3TableSource( props: H3TableSourceOptions ): Promise { assignDefaultProps(props); - const response = await _h3TableSource(props); + const response = await _h3TableSource(props as _H3TableSourceOptions); return {...response, widgetSource: new WidgetTableSource(props)}; } @@ -90,7 +90,7 @@ export async function h3QuerySource( props: H3QuerySourceOptions ): Promise { assignDefaultProps(props); - const response = await _h3QuerySource(props); + const response = await _h3QuerySource(props as _H3QuerySourceOptions); return {...response, widgetSource: new WidgetQuerySource(props)}; } @@ -109,7 +109,9 @@ export async function quadbinTableSource( props: QuadbinTableSourceOptions & WidgetBaseSourceProps ): Promise { assignDefaultProps(props); - const response = await _quadbinTableSource(props); + const response = await _quadbinTableSource( + props as _QuadbinTableSourceOptions + ); return {...response, widgetSource: new WidgetTableSource(props)}; } @@ -118,7 +120,9 @@ export async function quadbinQuerySource( props: QuadbinQuerySourceOptions & WidgetBaseSourceProps ): Promise { assignDefaultProps(props); - const response = await _quadbinQuerySource(props); + const response = await _quadbinQuerySource( + props as _QuadbinQuerySourceOptions + ); return {...response, widgetSource: new WidgetQuerySource(props)}; }