Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions lib/ts/lib.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ export const dialogRef = shallowRef<DialogInstance>();
* Closes the currently opened dialog, resolving the promise with the return value of the dialog, or with the given
* data if any.
*/
export function closeDialog(data?: any) {
export function closeDialog(data?: any): void {
if (data === undefined) {
data = dialogRef.value.comp.returnValue();
data = 'function' === typeof dialogRef.value.comp.returnValue ? dialogRef.value.comp.returnValue() : undefined;
}
dialogRef.value.resolve(data);
dialogRef.value = null;
Expand Down