diff options
| author | Yoshiya Hinosawa <stibium121@gmail.com> | 2019-03-08 09:25:16 +0900 |
|---|---|---|
| committer | Ryan Dahl <ry@tinyclouds.org> | 2019-03-07 19:25:16 -0500 |
| commit | f90f62fa52eccd020026b6899de1b3c7ae0288b6 (patch) | |
| tree | 6c8b67a43e353b01671179182a5b4c25f95ef416 /fs | |
| parent | fd74b38d361db4a251621d486b69473a4cc13f24 (diff) | |
Use Deno global var instead of built-in "deno" module (denoland/deno_std#247)
Original: https://github.com/denoland/deno_std/commit/395392912d69fe320d74c1f95a27be8e4adc0fa6
Diffstat (limited to 'fs')
| -rw-r--r-- | fs/glob.ts | 1 | ||||
| -rw-r--r-- | fs/glob_test.ts | 2 | ||||
| -rw-r--r-- | fs/walk.ts | 2 | ||||
| -rw-r--r-- | fs/walk_test.ts | 2 |
4 files changed, 3 insertions, 4 deletions
diff --git a/fs/glob.ts b/fs/glob.ts index 8c64c45b3..4d4ccc7ce 100644 --- a/fs/glob.ts +++ b/fs/glob.ts @@ -1,4 +1,3 @@ -import { FileInfo } from "deno"; import { globrex } from "./globrex.ts"; export interface GlobOptions { diff --git a/fs/glob_test.ts b/fs/glob_test.ts index 8691d2c33..2dc509dee 100644 --- a/fs/glob_test.ts +++ b/fs/glob_test.ts @@ -1,5 +1,5 @@ const { mkdir, open } = Deno; -import { FileInfo } from "deno"; +type FileInfo = Deno.FileInfo; import { test } from "../testing/mod.ts"; import { assertEquals } from "../testing/asserts.ts"; import { glob } from "./glob.ts"; diff --git a/fs/walk.ts b/fs/walk.ts index c76803a2e..24c800e59 100644 --- a/fs/walk.ts +++ b/fs/walk.ts @@ -1,5 +1,5 @@ const { readDir, readDirSync, readlink, readlinkSync, stat, statSync } = Deno; -import { FileInfo } from "deno"; +type FileInfo = Deno.FileInfo; export interface WalkOptions { maxDepth?: number; diff --git a/fs/walk_test.ts b/fs/walk_test.ts index 7e6384a60..93073c620 100644 --- a/fs/walk_test.ts +++ b/fs/walk_test.ts @@ -1,5 +1,5 @@ const { cwd, chdir, makeTempDir, mkdir, open, build, remove, symlink } = Deno; -import { FileInfo } from "deno"; +type FileInfo = Deno.FileInfo; import { walk, walkSync, WalkOptions } from "./walk.ts"; import { test, TestFunction } from "../testing/mod.ts"; import { assert, assertEquals } from "../testing/asserts.ts"; |
