feat: Add deprecation warning for Deno.customInspect (#22027)

This change sets the removal version of `Deno.customInspect` for Deno
v2.

Towards #22021

---------

Co-authored-by: Bartek Iwańczuk <biwanczuk@gmail.com>
This commit is contained in:
Asher Gomez 2024-01-24 08:46:59 +11:00 committed by GitHub
parent ee0cfd3fd5
commit 5aa25f08be
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 42 additions and 17 deletions

View file

@ -5034,8 +5034,8 @@ declare namespace Deno {
* called when `Deno.inspect()` is called, or when the object is logged to
* the console.
*
* @deprecated This symbol is deprecated since 1.9. Use
* `Symbol.for("Deno.customInspect")` instead.
* @deprecated Use `Symbol.for("Deno.customInspect")` instead. This symbol
* will be removed in Deno 2.0.
*
* @category Console and Debugging
*/