Update deps, enforce return type.

This commit is contained in:
Daniel Scalzi
2021-03-20 15:07:15 -04:00
parent 07ea0e8b98
commit 2540ca383e
6 changed files with 88 additions and 78 deletions

View File

@@ -41,7 +41,7 @@ function getBaseURL(): string {
return (new URL(baseUrl)).toString()
}
function installLocalOption(yargs: yargs.Argv) {
function installLocalOption(yargs: yargs.Argv): yargs.Argv {
return yargs.option('installLocal', {
describe: 'Install the generated distribution to your local Helios data folder.',
type: 'boolean',

View File

@@ -73,11 +73,11 @@ export abstract class ToggleableModuleStructure extends ModuleStructure {
protected getNamespaceMapper(namespace: ToggleableNamespace): (x: Module) => void {
switch(namespace) {
case ToggleableNamespace.REQUIRED:
return () => { /* do nothing */ }
return (): void => { /* do nothing */ }
case ToggleableNamespace.OPTIONAL_ON:
return (x) => x.required = { value: false }
return (x): void => { x.required = { value: false } }
case ToggleableNamespace.OPTIONAL_OFF:
return (x) => x.required = { value: false, def: false }
return (x): void => { x.required = { value: false, def: false } }
}
}

View File

@@ -24,7 +24,7 @@ export enum SchemaTypes {
ServerMetaSchema = 'ServerMetaSchema'
}
function getSchemaFileName(typeName: string) {
function getSchemaFileName(typeName: string): string {
return `${typeName}.schema.json`
}