ol-th / pdf-img-convert.js

Simple node package to convert a PDF into images.
MIT License
161 stars 38 forks source link

The expression of an export assignment must be an identifier or qualified name in an ambient context. #24

Closed ChurikiTenna closed 1 year ago

ChurikiTenna commented 2 years ago

Hi, I am trying to use the module with typescript. Installed via yarn add.

However, it shows this error on pdf-img-convert.d.ts: Line 15: export = { convert } The expression of an export assignment must be an identifier or qualified name in an ambient context.

Am I misunderstanding some behaviors?

ol-th commented 1 year ago

I think this might be relevant here: https://stackoverflow.com/questions/47094210/d-ts-not-compiling-after-typescript-2-6-1