From 6f698cf6e54204f89d8aeae899dfcf9084dc680e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ny=C3=A1rai=20Gerg=C5=91?= Date: Sat, 28 Oct 2023 00:17:21 +0200 Subject: [PATCH] Export 'replaceInFile' namespace. (#173) Co-authored-by: gnyar --- types/index.d.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/types/index.d.ts b/types/index.d.ts index 97409d5..0e05665 100644 --- a/types/index.d.ts +++ b/types/index.d.ts @@ -4,7 +4,7 @@ declare module 'replace-in-file' { export function replaceInFile(config: ReplaceInFileConfig, cb: (error: Error, results: ReplaceResult[]) => void): void; export default replaceInFile; - namespace replaceInFile { + export namespace replaceInFile { export function sync(config: ReplaceInFileConfig): ReplaceResult[]; export function replaceInFileSync(config: ReplaceInFileConfig): ReplaceResult[]; export function replaceInFile(config: ReplaceInFileConfig): Promise;