diff options
author | Cashew <52880648+Scrub1492@users.noreply.github.com> | 2023-12-21 23:33:49 +0900 |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-21 14:33:49 +0000 |
commit | b83ca2f37d6bb1007f62216cebf96a1177e556dc (patch) | |
tree | 47d37de584be77cc00b209e2af1d8b54e265f9f0 /types/ext | |
parent | f041f808891d6fc16e02a05b96a398ab432c756a (diff) |
Minor optimizations for dictionary import (#412)
* minor dictionary import optimizations
* fix comment
* use regex for matching
Diffstat (limited to 'types/ext')
-rw-r--r-- | types/ext/dictionary-importer.d.ts | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/types/ext/dictionary-importer.d.ts b/types/ext/dictionary-importer.d.ts index 5ae20dd1..cccfdc42 100644 --- a/types/ext/dictionary-importer.d.ts +++ b/types/ext/dictionary-importer.d.ts @@ -98,6 +98,16 @@ export type ImportRequirementContext = { export type ArchiveFileMap = Map<string, ZipJS.Entry>; +/** + * A map of file types inside a dictionary and its corresponding regular expressions. + */ +export type QueryDetails = Map<string, RegExp>; + +/** + * A map of file types inside a dictionary and its matching entries. + */ +export type QueryResult = Map<string, ZipJS.Entry[]>; + export type CompiledSchemaNameArray = [ termBank: CompiledSchemaName, termMetaBank: CompiledSchemaName, |