diff options
author | Ryan Dahl <ry@tinyclouds.org> | 2019-04-21 16:40:10 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-04-21 16:40:10 -0400 |
commit | 9dfebbc9496138efbeedc431068f41662c780f3e (patch) | |
tree | c3718c3dc132d11c08c8fc18933daebf886bf787 /js/compiler.ts | |
parent | 6cded14bdf313762956d4d5361cfe8115628b535 (diff) |
Fix eslint warnings (#2151)
Co-authored-by: Bartek IwaĆczuk <biwanczuk@gmail.com>
Co-authored-by: LE GOFF Vincent <g_n_s@hotmail.fr>
Diffstat (limited to 'js/compiler.ts')
-rw-r--r-- | js/compiler.ts | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/js/compiler.ts b/js/compiler.ts index 1a85de5f5..fffb9e852 100644 --- a/js/compiler.ts +++ b/js/compiler.ts @@ -349,7 +349,7 @@ class Compiler implements ts.LanguageServiceHost, ts.FormatDiagnosticsHost { // so we will ignore complaints about this compiler setting. ...service .getCompilerOptionsDiagnostics() - .filter(diagnostic => diagnostic.code !== 5070), + .filter((diagnostic): boolean => diagnostic.code !== 5070), ...service.getSyntacticDiagnostics(fileName), ...service.getSemanticDiagnostics(fileName) ]; @@ -519,9 +519,9 @@ window.TextEncoder = TextEncoder; // provide the "main" function that will be called by the privileged side when // lazy instantiating the compiler web worker -window.compilerMain = function compilerMain() { +window.compilerMain = function compilerMain(): void { // workerMain should have already been called since a compiler is a worker. - window.onmessage = ({ data }: { data: CompilerLookup }) => { + window.onmessage = ({ data }: { data: CompilerLookup }): void => { const { specifier, referrer, cmdId } = data; try { |