From 0011afe435f565dc5669f030da64e2c6e10ce05e Mon Sep 17 00:00:00 2001 From: Cashew <52880648+Scrub1492@users.noreply.github.com> Date: Sat, 20 Jan 2024 10:43:27 +0700 Subject: improve dictionary validation (#520) * improve dictionary validation * fix * improve performance * add undefined check * rename types * rename types * rename --- types/ext/dictionary-importer.d.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'types/ext') diff --git a/types/ext/dictionary-importer.d.ts b/types/ext/dictionary-importer.d.ts index 828ca86a..17bd1bb4 100644 --- a/types/ext/dictionary-importer.d.ts +++ b/types/ext/dictionary-importer.d.ts @@ -113,9 +113,9 @@ export type ImportRequirementContext = { export type ArchiveFileMap = Map; /** - * A map of file types inside a dictionary and its corresponding regular expressions. + * An array of tuples of a file type inside a dictionary and its corresponding regular expression. */ -export type QueryDetails = Map; +export type QueryDetails = [fileType: string, fileNameFormat: RegExp][]; /** * A map of file types inside a dictionary and its matching entries. -- cgit v1.2.3