diff options
| author | Bert Belder <bertbelder@gmail.com> | 2019-02-25 21:35:50 -0800 |
|---|---|---|
| committer | Ryan Dahl <ry@tinyclouds.org> | 2019-02-26 00:35:50 -0500 |
| commit | 2ba7de2d04fb7fb5847b86d9c549f1cbf9c68d5a (patch) | |
| tree | ca85b441bcfcebd48ac1fb4e262d836215242167 /examples | |
| parent | a7bf19135352928c87b5e1068252e0490990cec3 (diff) | |
Change `import { x } from "deno"` to `const { x } = Deno` (denoland/deno_std#218)
Original: https://github.com/denoland/deno_std/commit/6063378a9284a48d42e37b4899f947c5c8bbf0b3
Diffstat (limited to 'examples')
| -rw-r--r-- | examples/echo_server.ts | 2 | ||||
| -rwxr-xr-x | examples/gist.ts | 2 | ||||
| -rw-r--r-- | examples/test.ts | 2 |
3 files changed, 3 insertions, 3 deletions
diff --git a/examples/echo_server.ts b/examples/echo_server.ts index 5776e77ef..95b9f7413 100644 --- a/examples/echo_server.ts +++ b/examples/echo_server.ts @@ -1,5 +1,5 @@ // Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. -import { listen, copy } from "deno"; +const { listen, copy } = Deno; (async () => { const addr = "0.0.0.0:8080"; diff --git a/examples/gist.ts b/examples/gist.ts index 860678d88..8ce68a946 100755 --- a/examples/gist.ts +++ b/examples/gist.ts @@ -1,7 +1,7 @@ #!/usr/bin/env deno --allow-net --allow-env // Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. -import { args, env, exit, readFile } from "deno"; +const { args, env, exit, readFile } = Deno; import { parse } from "https://deno.land/x/flags/mod.ts"; function pathBase(p: string): string { diff --git a/examples/test.ts b/examples/test.ts index 65ff7efa1..30fdcfc4a 100644 --- a/examples/test.ts +++ b/examples/test.ts @@ -1,5 +1,5 @@ // Copyright 2018-2019 the Deno authors. All rights reserved. MIT license. -import { run } from "deno"; +const { run } = Deno; import { test, assertEqual } from "../testing/mod.ts"; /** Example of how to do basic tests */ |
