From 724d794677289b39c87c1bf94d9bf9a1c9c7e842 Mon Sep 17 00:00:00 2001 From: Tim Riffer Date: Thu, 9 Sep 2021 09:24:19 +0200 Subject: [PATCH 1/2] Update Typescript declaration and fix typos in readme --- index.d.ts | 2 +- readme.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/index.d.ts b/index.d.ts index 283752c..ff69c50 100644 --- a/index.d.ts +++ b/index.d.ts @@ -22,4 +22,4 @@ declare function replaceAsync( replacer: (substring: string, ...args: any[]) => Promise | string ): Promise; -export = replaceAsync; +export default replaceAsync; diff --git a/readme.md b/readme.md index 4fb8ef8..dfdf457 100644 --- a/readme.md +++ b/readme.md @@ -99,7 +99,7 @@ A `function` that takes [several arguments](https://developer.mozilla.org/en-US/ ## A Note on Concurrency -Previously this module had aditional menhod `seq()` that ran `replace` functions one by one instead of all at once. We decided to remove it to narrow our scope. Here's a snippet that achieves the same effect: +Previously this module had an additional method `seq()` that ran `replace` functions one by one instead of all at once. We decided to remove it to narrow our scope. Here's a snippet that achieves the same effect: ```js let sequence = Promise.resolve(); From edc4cf6241d6c441d1d5a93ecb6b87cdc814f20c Mon Sep 17 00:00:00 2001 From: Tim Riffer Date: Thu, 9 Sep 2021 09:31:00 +0200 Subject: [PATCH 2/2] Update readme --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index dfdf457..c760028 100644 --- a/readme.md +++ b/readme.md @@ -99,7 +99,7 @@ A `function` that takes [several arguments](https://developer.mozilla.org/en-US/ ## A Note on Concurrency -Previously this module had an additional method `seq()` that ran `replace` functions one by one instead of all at once. We decided to remove it to narrow our scope. Here's a snippet that achieves the same effect: +Previously this module had an additional function `seq()` that ran `replace` functions one by one instead of all at once. We decided to remove it to narrow our scope. Here's a snippet that achieves the same effect: ```js let sequence = Promise.resolve();