summaryrefslogtreecommitdiff
path: root/js/util.ts
diff options
context:
space:
mode:
authorRyan Dahl <ry@tinyclouds.org>2018-12-23 11:44:08 -0500
committerGitHub <noreply@github.com>2018-12-23 11:44:08 -0500
commit6cc998f28bb1cf119ca96bac385c7361bc1f7021 (patch)
treed5fb8f0da5c79fa14afc814ea85cf1c9134eb714 /js/util.ts
parentbee55fcd20b4919f2d6b4817ce33d1a09e6bcadc (diff)
Remove support for extensionless import (#1396)
Diffstat (limited to 'js/util.ts')
-rw-r--r--js/util.ts6
1 files changed, 3 insertions, 3 deletions
diff --git a/js/util.ts b/js/util.ts
index c5197164e..53de68c30 100644
--- a/js/util.ts
+++ b/js/util.ts
@@ -103,15 +103,15 @@ export function containsOnlyASCII(str: string): boolean {
return /^[\x00-\x7F]*$/.test(str);
}
-// @internal
export interface Deferred {
promise: Promise<void>;
resolve: Function;
reject: Function;
}
-/** Create a wrapper around a promise that could be resolved externally. */
-// @internal
+/** Create a wrapper around a promise that could be resolved externally.
+ * TODO Do not expose this from "deno" namespace.
+ */
export function deferred(): Deferred {
let resolve: Function | undefined;
let reject: Function | undefined;