aboutsummaryrefslogtreecommitdiff
path: root/test/document-util.test.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2024-02-24 23:47:57 -0500
committerGitHub <noreply@github.com>2024-02-25 04:47:57 +0000
commit73169f06dff767020718a5715eba97d3575ba7e1 (patch)
tree99d458f9d2ca74e67dbb4bccd148ef549f7ce2cf /test/document-util.test.js
parenta21948daf6210f67955ae4f98a81e21b8cf9f1f2 (diff)
Turn on @typescript-eslint/no-unsafe-argument (#728)24.2.26.0
Diffstat (limited to 'test/document-util.test.js')
-rw-r--r--test/document-util.test.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/test/document-util.test.js b/test/document-util.test.js
index c2b2edca..0f541e12 100644
--- a/test/document-util.test.js
+++ b/test/document-util.test.js
@@ -206,12 +206,15 @@ describe('Document utility tests', () => {
// Sentence info
const terminatorString = '…。..??!!';
+ /** @type {import('text-scanner').SentenceTerminatorMap} */
const terminatorMap = new Map();
for (const char of terminatorString) {
terminatorMap.set(char, [false, true]);
}
const quoteArray = [['「', '」'], ['『', '』'], ['\'', '\''], ['"', '"']];
+ /** @type {import('text-scanner').SentenceForwardQuoteMap} */
const forwardQuoteMap = new Map();
+ /** @type {import('text-scanner').SentenceBackwardQuoteMap} */
const backwardQuoteMap = new Map();
for (const [char1, char2] of quoteArray) {
forwardQuoteMap.set(char1, [char2, false]);