fix: empty constructors

This commit is contained in:
Aylur
2023-10-20 21:43:37 +02:00
parent 5cde65371f
commit 9da16e1608
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -23,7 +23,7 @@ export default class AgsIcon extends Gtk.Image {
}, this);
}
constructor(params: IconProps | string | GdkPixbuf.Pixbuf) {
constructor(params: IconProps | string | GdkPixbuf.Pixbuf = {}) {
const {
icon = '',
size = 0,
+1 -1
View File
@@ -24,7 +24,7 @@ export default class AgsLabel extends Gtk.Label {
}, this);
}
constructor(params: LabelProps) {
constructor(params: LabelProps = {}) {
super(typeof params === 'string' ? { label: params } : params);
}
+1 -1
View File
@@ -20,7 +20,7 @@ export default class AgsScrollable extends Gtk.ScrolledWindow {
}, this);
}
constructor(params: ScrollableProps) {
constructor(params: ScrollableProps = {}) {
super({
...params,
hadjustment: new Gtk.Adjustment(),
+1 -1
View File
@@ -45,7 +45,7 @@ export default function <T extends typeof Gtk.Widget, Props>(W: T, GTypeName?: s
}, this);
}
constructor(params: BaseProps<T> & Props | any) {
constructor(params: BaseProps<T> & Props | any = {}) {
const {
connections = [],
properties = [],