Skip to content

Commit

Permalink
fix dialog / MessageDialogContent constructor types
Browse files Browse the repository at this point in the history
  • Loading branch information
Totto16 committed Mar 28, 2024
1 parent 7f90a46 commit df8168c
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions packages/gnome-shell/src/ui/dialog.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,17 @@ export class Dialog extends St.Widget {
protected _setInitialKeyFocus(actor: St.Widget): void;
}

export interface MessageDialogContentProps extends St.BoxLayout.ConstructorProperties{
title?: string;
description?: string;
}

export class MessageDialogContent extends St.BoxLayout {
public title: string;
public description: string;

constructor(params: St.BoxLayout.ConstructorProperties);
public _init(params: St.BoxLayout.ConstructorProperties): void;
constructor(params: MessageDialogContentProps);
public _init(params: MessageDialogContentProps): void;

protected _onDestroy(): void;
protected _updateTitleStyle(): void;
Expand Down

0 comments on commit df8168c

Please sign in to comment.