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
|
open: boolean
|
||||||
title: string | undefined
|
title: string | undefined
|
||||||
content: Snippet | undefined
|
content: Snippet | undefined
|
||||||
component: Component | undefined
|
component: Component<any, any, any> | undefined
|
||||||
componentProps: Record<string, any> | undefined
|
componentProps: Record<string, any> | undefined
|
||||||
scrollable: boolean
|
scrollable: boolean
|
||||||
activeItemId: string | undefined
|
activeItemId: string | undefined
|
||||||
|
|
@ -35,7 +35,7 @@ class SidebarStore {
|
||||||
|
|
||||||
openWithComponent(
|
openWithComponent(
|
||||||
title: string,
|
title: string,
|
||||||
component: Component,
|
component: Component<any, any, any>,
|
||||||
props?: Record<string, any>,
|
props?: Record<string, any>,
|
||||||
scrollable = true
|
scrollable = true
|
||||||
) {
|
) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue