Skip to content

Commit b6ab49c

Browse files
committed
fix(bottomsheet): svelte showBottomSheet default return to any
1 parent 39a69cf commit b6ab49c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bottomsheet/svelte/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ export function resolveComponentElement<T>(viewSpec: typeof SvelteComponent<T>,
2929
return { element, viewInstance };
3030
}
3131

32-
export function showBottomSheet<T, U = any>(modalOptions: SvelteShowBottomSheetOptions<U>): Promise<T> {
32+
export function showBottomSheet<T = any, U = any>(modalOptions: SvelteShowBottomSheetOptions<U>): Promise<T> {
3333
const { view, parent, props = {}, ...options } = modalOptions;
3434
// Get this before any potential new frames are created by component below
3535
const modalLauncher: View = (parent && (parent instanceof View ? parent : parent.nativeView)) || Frame.topmost().currentPage;

0 commit comments

Comments
 (0)