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/dev/dictionary-validate.d.ts | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'types/dev') diff --git a/types/dev/dictionary-validate.d.ts b/types/dev/dictionary-validate.d.ts index d3f8a8be..02d01b78 100644 --- a/types/dev/dictionary-validate.d.ts +++ b/types/dev/dictionary-validate.d.ts @@ -29,3 +29,8 @@ export type Schemas = { termBankV3: Schema; termMetaBankV3: Schema; }; + +/** + * An array of tuples of a regular expression for file types inside a dictionary and its corresponding schema. + */ +export type SchemasDetails = [fileNameFormat: RegExp, schema: unknown][]; -- cgit v1.2.3