mirror of
https://github.com/cupcakearmy/svelte-cloudinary.git
synced 2025-09-06 01:20:40 +00:00
move types
This commit is contained in:
@@ -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) {
|
||||||
|
Reference in New Issue
Block a user