mirror of
https://github.com/denoland/deno.git
synced 2025-09-26 20:29:11 +00:00
Remove doc strings from cli/js TS files (#4329)
Co-authored-by: Ryan Dahl <ry@tinyclouds.org>
This commit is contained in:
parent
3ac642c183
commit
e435c2be15
87 changed files with 0 additions and 2025 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue