diff options
author | crowlKats <crowlkats@gmail.com> | 2020-03-13 10:22:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-03-13 10:22:22 +0100 |
commit | e435c2be158ce8657dbff0664b6db222fe4e586c (patch) | |
tree | b0e72033be2ce51a70fd2c2af23e6da131a642bb /cli/js/util.ts | |
parent | 3ac642c183981a366e1db565c16b81f864b07ee4 (diff) |
Remove doc strings from cli/js TS files (#4329)
Co-authored-by: Ryan Dahl <ry@tinyclouds.org>
Diffstat (limited to 'cli/js/util.ts')
-rw-r--r-- | cli/js/util.ts | 23 |
1 files changed, 0 insertions, 23 deletions
diff --git a/cli/js/util.ts b/cli/js/util.ts index 3c67fa7f1..ec39d6f35 100644 --- a/cli/js/util.ts +++ b/cli/js/util.ts @@ -11,10 +11,6 @@ export function setLogDebug(debug: boolean, source?: string): void { } } -/** Debug logging for deno. - * Enable with the `--log-debug` or `-D` command line flag. - * @internal - */ export function log(...args: unknown[]): void { if (logDebug) { // if we destructure `console` off `globalThis` too early, we don't bind to @@ -30,25 +26,6 @@ export function assert(cond: unknown, msg = "assert"): asserts cond { } } -/** A `Resolvable` is a Promise with the `reject` and `resolve` functions - * placed as methods on the promise object itself. It allows you to do: - * - * const p = createResolvable<number>(); - * // ... - * p.resolve(42); - * - * It'd be prettier to make `Resolvable` a class that inherits from `Promise`, - * rather than an interface. This is possible in ES2016, however typescript - * produces broken code when targeting ES5 code. - * - * At the time of writing, the GitHub issue is closed in favour of a proposed - * solution that is awaiting feedback. - * - * @see https://github.com/Microsoft/TypeScript/issues/15202 - * @see https://github.com/Microsoft/TypeScript/issues/15397 - * @internal - */ - export type ResolveFunction<T> = (value?: T | PromiseLike<T>) => void; // eslint-disable-next-line @typescript-eslint/no-explicit-any export type RejectFunction = (reason?: any) => void; |