Move types
This commit is contained in:
parent
cbabaaf8f7
commit
199aa80e25
|
@ -1,8 +1,7 @@
|
||||||
import { Readable } from "svelte/store"
|
|
||||||
import { Component, Context, SDK } from "."
|
import { Component, Context, SDK } from "."
|
||||||
|
|
||||||
declare module "svelte" {
|
declare module "svelte" {
|
||||||
export function getContext(key: "sdk"): SDK
|
export function getContext(key: "sdk"): SDK
|
||||||
export function getContext(key: "component"): Readable<Component>
|
export function getContext(key: "component"): Component
|
||||||
export function getContext(key: "context"): Readable<Context>
|
export function getContext(key: "context"): Context
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,10 +14,10 @@ export interface SDK {
|
||||||
}>
|
}>
|
||||||
}
|
}
|
||||||
|
|
||||||
export type Component = {
|
export type Component = Readable<{
|
||||||
id: string
|
id: string
|
||||||
styles: any
|
styles: any
|
||||||
errorState: boolean
|
errorState: boolean
|
||||||
}
|
}>
|
||||||
|
|
||||||
export type Context = {}
|
export type Context = Readable<{}>
|
||||||
|
|
Loading…
Reference in New Issue