photostructure / exiftool-vendored.js

Fast, cross-platform Node.js access to ExifTool
https://photostructure.github.io/exiftool-vendored.js/
MIT License
431 stars 43 forks source link

DefaultExifToolOptions #144

Closed renambot closed 1 year ago

renambot commented 1 year ago

Describe the bug Starting with 21.5, DefaultExifToolOptions is exported as a type, not a value it seems (using Typescript).

To Reproduce

import {  DefaultExifToolOptions,  ExifTool,} from "exiftool-vendored";

Expected behavior

const exiftool = new ExifTool({  ...DefaultExifToolOptions, });

error TS1362: 'DefaultExifToolOptions' cannot be used as a value because it was exported using 'export type'

Or did the API change?

Environment (please complete the following information):

Typescript and nodeJs 18

mceachen commented 1 year ago

Good catch! I'll get that fixed tomorrow.

Thanks for taking the time to report the issue!

mceachen commented 1 year ago

Waiting for GitHub to fix Actions before I release. https://www.githubstatus.com/incidents/pr3498h3qkfy

mceachen commented 1 year ago

v22.0.0 has been released.