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