mirror of
https://github.com/cupcakearmy/svelte-cloudinary.git
synced 2024-12-22 16:06:25 +00:00
move types
This commit is contained in:
parent
0b82aa8bef
commit
d8a6888c90
@ -38,10 +38,12 @@ function getSizeOfElementOrSelector(node: ElementOrString, elOrString: ElementOr
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
type BindType = ElementOrString | true | { width?: ElementOrString; height?: ElementOrString }
|
||||||
|
|
||||||
export type ImageParameters = {
|
export type ImageParameters = {
|
||||||
src: string
|
src: string
|
||||||
options?: Transformation | Transformation.Options
|
options?: Transformation | Transformation.Options
|
||||||
bind?: ElementOrString | true | { width?: ElementOrString; height?: ElementOrString }
|
bind?: BindType
|
||||||
}
|
}
|
||||||
|
|
||||||
export function image(node: HTMLImageElement, parameters?: ImageParameters) {
|
export function image(node: HTMLImageElement, parameters?: ImageParameters) {
|
||||||
|
Loading…
Reference in New Issue
Block a user