summaryrefslogtreecommitdiff
path: root/cli
diff options
context:
space:
mode:
Diffstat (limited to 'cli')
-rw-r--r--cli/dts/lib.deno.unstable.d.ts10
1 files changed, 6 insertions, 4 deletions
diff --git a/cli/dts/lib.deno.unstable.d.ts b/cli/dts/lib.deno.unstable.d.ts
index a25c1011e..6eb7153ba 100644
--- a/cli/dts/lib.deno.unstable.d.ts
+++ b/cli/dts/lib.deno.unstable.d.ts
@@ -831,20 +831,22 @@ declare namespace Deno {
>;
/**
- * Adds one to this callback's reference counting.
+ * Adds one to this callback's reference counting and returns the
+ * new reference count.
*
* If the callback's reference count becomes non-zero, it will keep
* Deno's process from exiting.
*/
- ref(): void;
+ ref(): number;
/**
- * Removes one from this callback's reference counting.
+ * Removes one from this callback's reference counting and returns
+ * the new reference count.
*
* If the callback's reference counter becomes zero, it will no longer
* keep Deno's process from exiting.
*/
- unref(): void;
+ unref(): number;
/**
* Removes the C function pointer associated with the UnsafeCallback.