Skip to content

Commit

Permalink
fix: Get lib.deno_core.d.ts to parse correctly (denoland#13238)
Browse files Browse the repository at this point in the history
  • Loading branch information
espindola committed Jan 6, 2022
1 parent fbe759a commit 2d978a7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions core/lib.deno_core.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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;

/**
Expand All @@ -126,7 +126,7 @@ declare namespace Deno {

export type PromiseRejectCallback = (
type: number,
promise: Promise,
promise: Promise<unknown>,
reason: any,
) => void;

Expand Down

0 comments on commit 2d978a7

Please sign in to comment.