Skip to content

Commit ddf6543

Browse files
Tim Rifferdsblv
authored andcommitted
Update Typescript declaration and fix typos in readme
1 parent 2721261 commit ddf6543

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

index.d.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,4 +22,4 @@ declare function replaceAsync(
2222
replacer: (substring: string, ...args: any[]) => Promise<string> | string
2323
): Promise<string>;
2424

25-
export = replaceAsync;
25+
export default replaceAsync;

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ A `function` that takes [several arguments](https://developer.mozilla.org/en-US/
9999

100100
## A Note on Concurrency
101101

102-
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:
102+
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:
103103

104104
```js
105105
let sequence = Promise.resolve();

0 commit comments

Comments
 (0)