move types

This commit is contained in:
cupcakearmy 2020-11-08 11:45:55 +01:00
parent 0b82aa8bef
commit d8a6888c90
No known key found for this signature in database
GPG Key ID: D28129AE5654D9D9

View File

@ -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) {