From 621440017a3fb93dcba6f9153ad150994592de02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bartek=20Iwa=C5=84czuk?= Date: Thu, 2 Nov 2023 23:43:02 +0100 Subject: chore: Add 'jupyter' category for Deno.jupyter APIs (#21061) --- cli/tsc/dts/lib.deno.unstable.d.ts | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'cli/tsc') diff --git a/cli/tsc/dts/lib.deno.unstable.d.ts b/cli/tsc/dts/lib.deno.unstable.d.ts index 3bdba510b..2c8a1144f 100644 --- a/cli/tsc/dts/lib.deno.unstable.d.ts +++ b/cli/tsc/dts/lib.deno.unstable.d.ts @@ -2103,6 +2103,7 @@ declare namespace Deno { * * @category Jupyter */ export namespace jupyter { + /** @category Jupyter */ export interface DisplayOptions { raw?: boolean; update?: boolean; @@ -2116,6 +2117,8 @@ declare namespace Deno { /** * A collection of supported media types and data for Jupyter frontends. + * + * @category Jupyter */ export type MediaBundle = { "text/plain"?: string; @@ -2145,8 +2148,10 @@ declare namespace Deno { [key: string]: string | object | undefined; }; + /** @category Jupyter */ export const $display: unique symbol; + /** @category Jupyter */ export type Displayable = { [$display]: () => MediaBundle | Promise; }; @@ -2158,6 +2163,7 @@ declare namespace Deno { * * @param obj - The object to be displayed * @param options - Display options with a default { raw: true } + * @category Jupyter */ export function display(obj: unknown, options?: DisplayOptions): void; @@ -2180,6 +2186,8 @@ declare namespace Deno { * Interactive compute with Jupyter _built into Deno_! * ` * ``` + * + * @category Jupyter */ export function md( strings: TemplateStringsArray, @@ -2197,6 +2205,8 @@ declare namespace Deno { * const { html } = Deno.jupyter; * html`

Hello, world!

` * ``` + * + * @category Jupyter */ export function html( strings: TemplateStringsArray, @@ -2213,6 +2223,8 @@ declare namespace Deno { * svg` * * ` + * + * @category Jupyter */ export function svg( strings: TemplateStringsArray, @@ -2224,6 +2236,8 @@ declare namespace Deno { * * @param obj - The object to be displayed * @returns MediaBundle + * + * @category Jupyter */ export function format(obj: unknown): MediaBundle; -- cgit v1.2.3