Skip to content

Commit

Permalink
feat: add io types to io namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
c4spar committed May 14, 2021
1 parent b7d4136 commit 3bdd903
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/runtime/deps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ export type {
ParsedPath,
} from "https://deno.land/std@0.93.0/path/mod.ts";
export * as io from "https://deno.land/std@0.93.0/io/mod.ts";
export type { ReadLineResult } from "https://deno.land/std@0.93.0/io/mod.ts";
export * as fs from "https://deno.land/std@0.93.0/fs/mod.ts";
export * as log from "https://deno.land/std@0.93.0/log/mod.ts";
export * as flags from "https://deno.land/std@0.93.0/flags/mod.ts";
Expand Down
5 changes: 5 additions & 0 deletions types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import type {
GlobOptions as _GlobOptions,
GlobToRegExpOptions as _GlobToRegExpOptions,
ParsedPath as _ParsedPath,
ReadLineResult as _ReadLineResult,
} from "./src/runtime/deps.ts";

declare global {
Expand Down Expand Up @@ -50,6 +51,10 @@ declare global {
type ParsedPath = _ParsedPath;
}

namespace io {
type ReadLineResult = _ReadLineResult;
}

interface Window {
// dzx
$: $;
Expand Down

0 comments on commit 3bdd903

Please sign in to comment.