adamreisnz / replace-in-file

A simple utility to quickly replace contents in one or more files
580 stars 65 forks source link

All declarations should be exported #172

Closed kukko closed 11 months ago

kukko commented 12 months ago

Hello!

I got the following error while trying to use from a TypeScript project: "Individual declarations in merged declaration 'replaceInFile' must be all exported or all local."

I tried it out and if simply exporting the replaceInFile namespace, it can solve this issue.

I import the package like this: import replace from 'replace-in-file';

adamreisnz commented 12 months ago

Hi there, I don't maintain the Typescript side of things for this package, but you're welcome to open a PR

kukko commented 11 months ago

You can close this issue, since PR #173 which resolves this, has already been merged. :)