You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hey! I've been using this package for a project I've been working on and I've got it doing what I need it to but I'm having some issues with the typescript type for Image.meta.
The issue is that the object type represents "any non-primitive type" rather than "an object that has key/value pairs". This means when you try and access exif/tiff it throws an error:
Was this deliberately meant to be object or would something like { [key: string]: any } or Record<string, any> be more appropriate? Either of those would result in meta being typed as an object with unspecified key/value pairs.
The text was updated successfully, but these errors were encountered:
Hey! I've been using this package for a project I've been working on and I've got it doing what I need it to but I'm having some issues with the typescript type for
Image.meta
.image-js/index.d.ts
Line 21 in d0b4e00
The issue is that the
object
type represents "any non-primitive type" rather than "an object that has key/value pairs". This means when you try and access exif/tiff it throws an error:Was this deliberately meant to be
object
or would something like{ [key: string]: any }
orRecord<string, any>
be more appropriate? Either of those would result inmeta
being typed as an object with unspecified key/value pairs.The text was updated successfully, but these errors were encountered: