Skip to content

Commit

Permalink
feat: add log types to log namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
c4spar committed May 14, 2021
1 parent 3bdd903 commit 62db895
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/runtime/deps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,10 @@ 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 type {
LevelName,
LogConfig,
} 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";
export type {
ArgParsingOptions,
Expand Down
7 changes: 7 additions & 0 deletions types.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,8 @@ import type {
FormatInputPathObject as _FormatInputPathObject,
GlobOptions as _GlobOptions,
GlobToRegExpOptions as _GlobToRegExpOptions,
LevelName as _LevelName,
LogConfig as _LogConfig,
ParsedPath as _ParsedPath,
ReadLineResult as _ReadLineResult,
} from "./src/runtime/deps.ts";
Expand Down Expand Up @@ -55,6 +57,11 @@ declare global {
type ReadLineResult = _ReadLineResult;
}

namespace log {
type LevelName = _LevelName;
type LogConfig = _LogConfig;
}

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

0 comments on commit 62db895

Please sign in to comment.