fix: Get lib.deno_core.d.ts to parse correctly (#13238)

This commit is contained in:
Rafael Ávila de Espíndola 2022-01-06 04:58:44 -05:00 committed by crowlkats
parent 063537315d
commit 5b99b6150d
No known key found for this signature in database
GPG Key ID: A82C9D461FC483E8

View File

@ -6,7 +6,7 @@
/// <reference lib="esnext" />
declare namespace Deno {
declare namespace core {
namespace core {
/** Call an op in Rust, and synchronously receive the result. */
function opSync(
opName: string,
@ -104,16 +104,16 @@ declare namespace Deno {
): void;
/** Check if there's a scheduled "next tick". */
function hasNextTickScheduled(): bool;
function hasNextTickScheduled(): boolean;
/** Set a value telling the runtime if there are "next ticks" scheduled */
function setHasNextTickScheduled(value: bool): void;
function setHasNextTickScheduled(value: boolean): void;
/**
* Set a callback that will be called after resolving ops and "next ticks".
*/
function setMacrotaskCallback(
cb: () => bool,
cb: () => boolean,
): void;
/**
@ -126,7 +126,7 @@ declare namespace Deno {
export type PromiseRejectCallback = (
type: number,
promise: Promise,
promise: Promise<unknown>,
reason: any,
) => void;