Use Deno global var instead of built-in "deno" module (denoland/deno_std#247)

Original: 395392912d
This commit is contained in:
Yoshiya Hinosawa 2019-03-08 09:25:16 +09:00 committed by Ryan Dahl
parent fd74b38d36
commit f90f62fa52
19 changed files with 36 additions and 27 deletions

View file

@ -1,6 +1,7 @@
// Copyright 2018-2019 the Deno authors. All rights reserved. MIT license.
const { Buffer, mkdir, open } = Deno;
import { File, Reader } from "deno";
type File = Deno.File;
type Reader = Deno.Reader;
import { encode } from "../strings/strings.ts";
import * as path from "../fs/path.ts";
// `off` is the offset into `dst` where it will at which to begin writing values