Fix typing error.

This commit is contained in:
Grégoire Geis 2021-05-06 00:40:39 +02:00
parent 0d994c6f83
commit cdfa9c8c05
2 changed files with 2 additions and 2 deletions

View File

@ -725,7 +725,7 @@ export function splitSelections(re: RegExp, selections = Context.current.selecti
* ### Example
*
* ```ts
* expect(Selections.selectWithin(/\d/).map(text), "to equal", [
* expect(Selections.selectWithin(/\d/).map<string>(text), "to equal", [
* "1",
* "2",
* "6",

View File

@ -1022,7 +1022,7 @@ suite("API tests", function () {
await before.apply(editor);
await context.runAsync(async () => {
expect(Selections.selectWithin(/\d/).map(text), "to equal", [
expect(Selections.selectWithin(/\d/).map<string>(text), "to equal", [
"1",
"2",
"6",