From f12acdb50bd6afae21d8d033548c012d23ec2791 Mon Sep 17 00:00:00 2001 From: Yoshiya Hinosawa Date: Sun, 8 Sep 2019 01:27:18 +0900 Subject: Update @typescript-eslint/* to v2.1.0 (#2878) --- js/workers.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'js/workers.ts') diff --git a/js/workers.ts b/js/workers.ts index 36c2aa50b..8d42f3585 100644 --- a/js/workers.ts +++ b/js/workers.ts @@ -55,7 +55,7 @@ async function hostGetMessage(rid: number): Promise { } // Stuff for workers -export let onmessage: (e: { data: any }) => void = (): void => {}; +export const onmessage: (e: { data: any }) => void = (): void => {}; export function postMessage(data: any): void { const dataIntArray = encodeMessage(data); @@ -122,7 +122,7 @@ export interface DenoWorkerOptions extends WorkerOptions { export class WorkerImpl implements Worker { private readonly rid: number; - private isClosing: boolean = false; + private isClosing = false; private readonly isClosedPromise: Promise; public onerror?: () => void; public onmessage?: (data: any) => void; -- cgit v1.2.3