sindresorhus/open

Not using a default export

Huguesmmm opened this issue · 1 comments

There is a problem caused by exporting 'open' without using the 'default' keyword in the index.d.ts file.

The error when trying to import :

Module '".../node_modules/open/index"' can only be default-imported using the 'allowSyntheticDefaultImports' flagts(1259)
index.d.ts(153, 1): This module is declared with 'export =', and can only be used with a default import when using the 'allowSyntheticDefaultImports' flag.