diff --git a/src/util/isScheduler.ts b/src/util/isScheduler.ts index 44f9d3fec5..6a05b57b38 100644 --- a/src/util/isScheduler.ts +++ b/src/util/isScheduler.ts @@ -1,4 +1,4 @@ import { Scheduler } from '../Scheduler'; -export function isScheduler(value: any): value is Scheduler { +export function isScheduler(value: any): value is Scheduler { return value && typeof (value).schedule === 'function'; } diff --git a/src/util/root.ts b/src/util/root.ts index 0c0a3c3951..e5b4d1c3b1 100644 --- a/src/util/root.ts +++ b/src/util/root.ts @@ -1,6 +1,4 @@ declare let global: NodeJS.Global; -declare let module: any; -declare let exports: any; declare module NodeJS { interface Global {