mirror of
https://github.com/denoland/deno.git
synced 2025-01-03 04:48:52 -05:00
fix: Get lib.deno_core.d.ts to parse correctly (#13238)
This commit is contained in:
parent
fbe759ac94
commit
2d978a73eb
1 changed files with 5 additions and 5 deletions
10
core/lib.deno_core.d.ts
vendored
10
core/lib.deno_core.d.ts
vendored
|
@ -6,7 +6,7 @@
|
||||||
/// <reference lib="esnext" />
|
/// <reference lib="esnext" />
|
||||||
|
|
||||||
declare namespace Deno {
|
declare namespace Deno {
|
||||||
declare namespace core {
|
namespace core {
|
||||||
/** Call an op in Rust, and synchronously receive the result. */
|
/** Call an op in Rust, and synchronously receive the result. */
|
||||||
function opSync(
|
function opSync(
|
||||||
opName: string,
|
opName: string,
|
||||||
|
@ -104,16 +104,16 @@ declare namespace Deno {
|
||||||
): void;
|
): void;
|
||||||
|
|
||||||
/** Check if there's a scheduled "next tick". */
|
/** 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 */
|
/** 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".
|
* Set a callback that will be called after resolving ops and "next ticks".
|
||||||
*/
|
*/
|
||||||
function setMacrotaskCallback(
|
function setMacrotaskCallback(
|
||||||
cb: () => bool,
|
cb: () => boolean,
|
||||||
): void;
|
): void;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -126,7 +126,7 @@ declare namespace Deno {
|
||||||
|
|
||||||
export type PromiseRejectCallback = (
|
export type PromiseRejectCallback = (
|
||||||
type: number,
|
type: number,
|
||||||
promise: Promise,
|
promise: Promise<unknown>,
|
||||||
reason: any,
|
reason: any,
|
||||||
) => void;
|
) => void;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue