@drovp/types
Advanced tools
Comparing version 4.4.1 to 4.5.0
@@ -360,2 +360,18 @@ /** | ||
interface CommonModals { | ||
alert(data: ModalData): Promise<void>; | ||
confirm(data: ModalData): Promise<ModalResult<boolean>>; | ||
prompt( | ||
data: ModalData, | ||
stringOptions?: Omit<OptionString, 'title' | 'description' | 'type' | 'name'> | ||
): Promise<ModalResult<string>>; | ||
promptOptions<T extends OptionsData | undefined = undefined>( | ||
data: ModalData, | ||
schema: OptionsSchema<T> | ||
): Promise<ModalResult<T>>; | ||
showOpenDialog(options: OpenDialogOptions): Promise<OpenDialogReturnValue>; | ||
showSaveDialog(options: SaveDialogOptions): Promise<SaveDialogReturnValue>; | ||
openModalWindow<T = unknown>(options: string | OpenWindowOptions, payload: unknown): Promise<T>; | ||
} | ||
export interface LoadUtils { | ||
@@ -365,3 +381,3 @@ dataPath: string; | ||
export interface InstallUtils { | ||
export type InstallUtils = CommonModals & { | ||
dataPath: string; | ||
@@ -380,3 +396,3 @@ tmpPath: string; | ||
log: (...args: any[]) => void; | ||
} | ||
}; | ||
@@ -421,20 +437,7 @@ export interface Progress { | ||
export interface PreparatorUtils { | ||
export type PreparatorUtils = CommonModals & { | ||
modifiers: string; | ||
action: 'drop' | 'paste'; | ||
title(value: string | undefined | null): void; | ||
alert(data: ModalData): Promise<void>; | ||
confirm(data: ModalData): Promise<ModalResult<boolean>>; | ||
prompt( | ||
data: ModalData, | ||
stringOptions?: Omit<OptionString, 'title' | 'description' | 'type' | 'name'> | ||
): Promise<ModalResult<string>>; | ||
promptOptions<T extends OptionsData | undefined = undefined>( | ||
data: ModalData, | ||
schema: OptionsSchema<T> | ||
): Promise<ModalResult<T>>; | ||
showOpenDialog(options: OpenDialogOptions): Promise<OpenDialogReturnValue>; | ||
showSaveDialog(options: SaveDialogOptions): Promise<SaveDialogReturnValue>; | ||
openModalWindow<T = unknown>(options: string | OpenWindowOptions, payload: unknown): Promise<T>; | ||
} | ||
}; | ||
@@ -441,0 +444,0 @@ interface ModalData { |
{ | ||
"name": "@drovp/types", | ||
"version": "4.4.1", | ||
"version": "4.5.0", | ||
"description": "Drovp plugin API definitions", | ||
@@ -5,0 +5,0 @@ "keywords": [ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
22444
600