From 6443e4aed16868c17111a56634aa733211430f46 Mon Sep 17 00:00:00 2001 From: Nayeem Rahman Date: Tue, 10 Mar 2020 16:08:58 +0000 Subject: refactor: Cleanup options object parameters (#4296) --- cli/js/compiler_host.ts | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'cli/js/compiler_host.ts') diff --git a/cli/js/compiler_host.ts b/cli/js/compiler_host.ts index b89c7163c..413ffa6e1 100644 --- a/cli/js/compiler_host.ts +++ b/cli/js/compiler_host.ts @@ -165,8 +165,7 @@ export class Host implements ts.CompilerHost { /* Deno specific APIs */ /** Provides the `ts.HostCompiler` interface for Deno. */ - constructor(options: CompilerHostOptions) { - const { bundle = false, target, writeFile } = options; + constructor({ bundle = false, target, writeFile }: CompilerHostOptions) { this._target = target; this._writeFile = writeFile; if (bundle) { -- cgit v1.2.3