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