From 5e90e955bfa62a642b6ed280acca4e7b87b39fa6 Mon Sep 17 00:00:00 2001 From: Eddie Antonio Santos Date: Mon, 19 Aug 2019 12:25:07 -0600 Subject: [PATCH] Enable noImplicitReturns. --- developer/js/source/index.ts | 2 ++ developer/js/tsconfig.json | 6 ++++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/developer/js/source/index.ts b/developer/js/source/index.ts index 5ef9ea5c5f..a3d26aadb0 100644 --- a/developer/js/source/index.ts +++ b/developer/js/source/index.ts @@ -182,6 +182,8 @@ export default class LexicalModelCompiler { set_model_metadata('sourcePath', [groupPath, authorPath, bcp47Path].join('/')); fs.writeFileSync(modelInfoFileName, JSON.stringify(model_info, null, 2)); + + return true; }; /** diff --git a/developer/js/tsconfig.json b/developer/js/tsconfig.json index 055a956c44..95daf1fe1c 100644 --- a/developer/js/tsconfig.json +++ b/developer/js/tsconfig.json @@ -1,9 +1,11 @@ { "compilerOptions": { - "target": "es2017", "module": "commonjs", - "outDir": "dist", + "target": "es2017", + "noImplicitReturns": true, + "moduleResolution": "node", "sourceMap": true, + "outDir": "dist", "declaration": true }, "include": [