Skip to content

Commit

Permalink
feat: add async types to async namespace
Browse files Browse the repository at this point in the history
  • Loading branch information
c4spar committed May 14, 2021
1 parent 4ef155e commit b22b929
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
@@ -1,4 +1,5 @@
export * as async from "https://deno.land/std@0.93.0/async/mod.ts";
export type { Deferred } from "https://deno.land/std@0.93.0/async/mod.ts";
export * as path 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 * as fs from "https://deno.land/std@0.93.0/fs/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 @@ -13,6 +13,7 @@ import type {
import type {
ArgParsingOptions as _ArgParsingOptions,
Args as _Args,
Deferred as _Deferred,
} from "./src/runtime/deps.ts";

declare global {
Expand All @@ -34,6 +35,10 @@ declare global {
type ArgParsingOptions = _ArgParsingOptions;
}

namespace async {
type Deferred<T> = _Deferred<T>;
}

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

0 comments on commit b22b929

Please sign in to comment.