mirror of
https://github.com/cupcakearmy/svelte-cloudinary.git
synced 2024-12-22 07:56: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 = {
|
||||
src: string
|
||||
options?: Transformation | Transformation.Options
|
||||
bind?: ElementOrString | true | { width?: ElementOrString; height?: ElementOrString }
|
||||
bind?: BindType
|
||||
}
|
||||
|
||||
export function image(node: HTMLImageElement, parameters?: ImageParameters) {
|
||||
|
Loading…
Reference in New Issue
Block a user