diff options
Diffstat (limited to 'js/util.ts')
-rw-r--r-- | js/util.ts | 6 |
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; |