Skip to content

Commit

Permalink
fix(browser): export loadImage rather than resolveImage
Browse files Browse the repository at this point in the history
  • Loading branch information
kyranet authored and favna committed Jun 3, 2022
1 parent 6d1c5da commit ef0be31
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.tst
Original file line number Diff line number Diff line change
Expand Up @@ -2361,7 +2361,7 @@ interface ResolvedCircularCoordinates {

// IF(BROWSER): \
export const Image = HTMLImageElement; \
export function resolveImage(src: string, options?: Partial<HTMLImageElement>): Promise<HTMLImageElement> { \
export function loadImage(src: string, options?: Partial<HTMLImageElement>): Promise<HTMLImageElement> { \
return new Promise<HTMLImageElement>((resolve, reject) => { \
// eslint-disable-next-line no-undef \
const image = Object.assign(document.createElement('img'), options) as HTMLImageElement; \
Expand Down

0 comments on commit ef0be31

Please sign in to comment.