mirror of
https://github.com/denoland/deno.git
synced 2024-11-28 16:20:57 -05:00
fix: fix jupyter display function type (#25326)
This commit is contained in:
parent
063a726af2
commit
047887c573
1 changed files with 6 additions and 3 deletions
9
cli/tsc/dts/lib.deno.unstable.d.ts
vendored
9
cli/tsc/dts/lib.deno.unstable.d.ts
vendored
|
@ -2163,7 +2163,10 @@ declare namespace Deno {
|
|||
* @category Jupyter
|
||||
* @experimental
|
||||
*/
|
||||
export function display(obj: unknown, options?: DisplayOptions): void;
|
||||
export function display(
|
||||
obj: unknown,
|
||||
options?: DisplayOptions,
|
||||
): Promise<void>;
|
||||
|
||||
/**
|
||||
* Show Markdown in Jupyter frontends with a tagged template function.
|
||||
|
@ -2236,12 +2239,12 @@ declare namespace Deno {
|
|||
* Format an object for displaying in Deno
|
||||
*
|
||||
* @param obj - The object to be displayed
|
||||
* @returns MediaBundle
|
||||
* @returns Promise<MediaBundle>
|
||||
*
|
||||
* @category Jupyter
|
||||
* @experimental
|
||||
*/
|
||||
export function format(obj: unknown): MediaBundle;
|
||||
export function format(obj: unknown): Promise<MediaBundle>;
|
||||
|
||||
/**
|
||||
* Broadcast a message on IO pub channel.
|
||||
|
|
Loading…
Reference in a new issue