1
0
Fork 0
mirror of https://github.com/denoland/deno.git synced 2024-11-24 15:19:26 -05:00

fix: fix jupyter display function type (#25326)

This commit is contained in:
Bedis Nbiba 2024-09-03 09:42:39 +01:00 committed by GitHub
parent 9bf10aa1e0
commit 3f6740ca52
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -2143,7 +2143,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.
@ -2216,12 +2219,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.