diff options
author | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2023-11-29 20:31:02 -0500 |
---|---|---|
committer | toasted-nutbread <toasted-nutbread@users.noreply.github.com> | 2023-11-29 20:31:02 -0500 |
commit | fd8be74abfd8ed46f984a5d0b70adcc8c641b617 (patch) | |
tree | 3f9024a3afbeeb6c59ac5be1eddb1a869eab53b6 /dev/bin | |
parent | 59685d00ca5b2e6f7378280f9bbe6af2aeed404f (diff) |
Update types
Diffstat (limited to 'dev/bin')
-rw-r--r-- | dev/bin/build.js | 2 | ||||
-rw-r--r-- | dev/bin/dictionary-validate.js | 1 | ||||
-rw-r--r-- | dev/bin/schema-validate.js | 1 |
3 files changed, 3 insertions, 1 deletions
diff --git a/dev/bin/build.js b/dev/bin/build.js index c5814dd3..47c08f3c 100644 --- a/dev/bin/build.js +++ b/dev/bin/build.js @@ -254,7 +254,7 @@ export async function main(argv) { await build(buildDir, extDir, manifestUtil, variantNames, manifestPath, dryRun, dryRunBuildZip, yomitanVersion); } finally { // Restore manifest - const manifestName = (!args.get('default') && args.get('manifest') !== null) ? args.get('manifest') : null; + const manifestName = /** @type {?string} */ ((!args.get('default') && args.get('manifest') !== null) ? args.get('manifest') : null); const restoreManifest = manifestUtil.getManifest(manifestName); process.stdout.write('Restoring manifest...\n'); if (!dryRun) { diff --git a/dev/bin/dictionary-validate.js b/dev/bin/dictionary-validate.js index 0affb919..dc01815e 100644 --- a/dev/bin/dictionary-validate.js +++ b/dev/bin/dictionary-validate.js @@ -18,6 +18,7 @@ import {testDictionaryFiles} from '../dictionary-validate.js'; +/** */ async function main() { const dictionaryFileNames = process.argv.slice(2); if (dictionaryFileNames.length === 0) { diff --git a/dev/bin/schema-validate.js b/dev/bin/schema-validate.js index 319c0d2c..206f26ca 100644 --- a/dev/bin/schema-validate.js +++ b/dev/bin/schema-validate.js @@ -20,6 +20,7 @@ import fs from 'fs'; import {performance} from 'perf_hooks'; import {createJsonSchema} from '../schema-validate.js'; +/** */ function main() { const args = process.argv.slice(2); if (args.length < 2) { |