Skip to content

Commit

Permalink
fix type error
Browse files Browse the repository at this point in the history
  • Loading branch information
donmccurdy committed Sep 25, 2024
1 parent b81bebc commit d26d908
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions src/sources/wrappers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ export async function h3TableSource(
props: H3TableSourceOptions
): Promise<H3TableSourceResponse> {
assignDefaultProps(props);
const response = await _h3TableSource(props);
const response = await _h3TableSource(props as _H3TableSourceOptions);
return {...response, widgetSource: new WidgetTableSource(props)};
}

Expand All @@ -90,7 +90,7 @@ export async function h3QuerySource(
props: H3QuerySourceOptions
): Promise<H3QuerySourceResponse> {
assignDefaultProps(props);
const response = await _h3QuerySource(props);
const response = await _h3QuerySource(props as _H3QuerySourceOptions);
return {...response, widgetSource: new WidgetQuerySource(props)};
}

Expand All @@ -109,7 +109,9 @@ export async function quadbinTableSource(
props: QuadbinTableSourceOptions & WidgetBaseSourceProps
): Promise<QuadbinTableSourceResponse> {
assignDefaultProps(props);
const response = await _quadbinTableSource(props);
const response = await _quadbinTableSource(
props as _QuadbinTableSourceOptions
);
return {...response, widgetSource: new WidgetTableSource(props)};
}

Expand All @@ -118,7 +120,9 @@ export async function quadbinQuerySource(
props: QuadbinQuerySourceOptions & WidgetBaseSourceProps
): Promise<QuadbinQuerySourceResponse> {
assignDefaultProps(props);
const response = await _quadbinQuerySource(props);
const response = await _quadbinQuerySource(
props as _QuadbinQuerySourceOptions
);
return {...response, widgetSource: new WidgetQuerySource(props)};
}

Expand Down

0 comments on commit d26d908

Please sign in to comment.