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..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 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 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();