UNPKG

@ayonli/jsext

Version:

A JavaScript extension package for building strong and modern applications.

8 lines (7 loc) 590 B
import type { ProgressAbortHandler, ProgressFunc } from "./progress.ts"; import type { DialogOptions, PromptOptions } from "../dialog.ts"; export * from "./web/file.ts"; export declare function alert(message: string, options?: DialogOptions): Promise<void>; export declare function confirm(message: string, options?: DialogOptions): Promise<boolean>; export declare function prompt(message: string, options?: PromptOptions): Promise<string | null>; export declare function progress<T>(message: string, fn: ProgressFunc<T>, onAbort?: ProgressAbortHandler<T> | undefined): Promise<T | null>;