fix: sidebar.svelte.ts Component type to accept any props (166 -> 163 errors)
Co-Authored-By: Justin Edmund <justin@jedmund.com>
This commit is contained in:
parent
3b89628e7e
commit
0d3aca286a
1 changed files with 2 additions and 2 deletions
|
|
@ -7,7 +7,7 @@ interface SidebarState {
|
|||
open: boolean
|
||||
title: string | undefined
|
||||
content: Snippet | undefined
|
||||
component: Component | undefined
|
||||
component: Component<any, any, any> | undefined
|
||||
componentProps: Record<string, any> | undefined
|
||||
scrollable: boolean
|
||||
activeItemId: string | undefined
|
||||
|
|
@ -35,7 +35,7 @@ class SidebarStore {
|
|||
|
||||
openWithComponent(
|
||||
title: string,
|
||||
component: Component,
|
||||
component: Component<any, any, any>,
|
||||
props?: Record<string, any>,
|
||||
scrollable = true
|
||||
) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue