more type fix

This commit is contained in:
Peter Clement 2025-03-12 14:41:33 +00:00
parent 495a452122
commit e637a86a2b
1 changed files with 7 additions and 4 deletions

View File

@ -2,6 +2,7 @@ declare module "svelte" {
export function getContext(key: "bbui-modal"): { export function getContext(key: "bbui-modal"): {
hide: () => void hide: () => void
cancel: () => void cancel: () => void
show: () => void
} }
export function getContext(key: "bbui-popover-root"): { export function getContext(key: "bbui-popover-root"): {
show: () => void show: () => void
@ -12,7 +13,9 @@ declare module "svelte" {
} }
} }
export default { declare const Context: {
Modal: "bbui-modal", readonly Modal: "bbui-modal"
PopoverRoot: "bbui-popover-root", readonly PopoverRoot: "bbui-popover-root"
} as const }
export default Context