summaryrefslogtreecommitdiff
path: root/core/lib.deno_core.d.ts
diff options
context:
space:
mode:
authorRafael Ávila de Espíndola <rafael@espindo.la>2022-01-06 04:58:44 -0500
committerGitHub <noreply@github.com>2022-01-06 10:58:44 +0100
commit2d978a73ebc68d67672fca4df9afb8ab01fcc4f8 (patch)
tree49d6d013f97784413a77bfad035b06b6334d1802 /core/lib.deno_core.d.ts
parentfbe759ac94d861409f1eb9046e6402a22039289e (diff)
fix: Get lib.deno_core.d.ts to parse correctly (#13238)
Diffstat (limited to 'core/lib.deno_core.d.ts')
-rw-r--r--core/lib.deno_core.d.ts10
1 files changed, 5 insertions, 5 deletions
diff --git a/core/lib.deno_core.d.ts b/core/lib.deno_core.d.ts
index 240284c88..e914a50c2 100644
--- a/core/lib.deno_core.d.ts
+++ b/core/lib.deno_core.d.ts
@@ -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;