more type fixes
This commit is contained in:
parent
6823401c18
commit
ca8348dfb3
packages/bbui/src
|
@ -1,9 +1,9 @@
|
||||||
declare module "svelte" {
|
declare module "svelte" {
|
||||||
export function getContext(key: Context.Modal): {
|
export function getContext(key: "bbui-modal"): {
|
||||||
hide: () => void
|
hide: () => void
|
||||||
cancel: () => void
|
cancel: () => void
|
||||||
}
|
}
|
||||||
export function getContext(key: Context.Popover): {
|
export function getContext(key: "bbui-popover-root"): {
|
||||||
show: () => void
|
show: () => void
|
||||||
hide: () => void
|
hide: () => void
|
||||||
}
|
}
|
||||||
|
@ -16,8 +16,3 @@ export default {
|
||||||
Modal: "bbui-modal",
|
Modal: "bbui-modal",
|
||||||
PopoverRoot: "bbui-popover-root",
|
PopoverRoot: "bbui-popover-root",
|
||||||
} as const
|
} as const
|
||||||
|
|
||||||
export namespace Context {
|
|
||||||
type Modal = "bbui-modal"
|
|
||||||
type PopoverRoot = "bbui-popover-root"
|
|
||||||
}
|
|
||||||
|
|
|
@ -0,0 +1,6 @@
|
||||||
|
const Context = {
|
||||||
|
Modal: "bbui-modal",
|
||||||
|
PopoverRoot: "bbui-popover-root",
|
||||||
|
} as const
|
||||||
|
|
||||||
|
export default Context
|
Loading…
Reference in New Issue