Skip to content

fix: missing type and altText from Image interface#460

Open
jclaessens97 wants to merge 1 commit into
mwilliamson:masterfrom
jclaessens97:fix/image-type
Open

fix: missing type and altText from Image interface#460
jclaessens97 wants to merge 1 commit into
mwilliamson:masterfrom
jclaessens97:fix/image-type

Conversation

@jclaessens97
Copy link
Copy Markdown

Comparing the output of an image of type Image to the interface Image, type and altText are missing:

output:

image: {
    type: 'image',
    read: [Function: read],
    readAsArrayBuffer: [Function: readAsArrayBuffer],
    readAsBase64String: [Function: readAsBase64String],
    readAsBuffer: [Function: readAsBuffer],
    altText: '6,297,900+ Photo Image Art Stock Photos, Pictures & Royalty-Free Images -  iStock',
    contentType: 'image/jpeg'
  }

I've added those 2 types to the index.d.ts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant