When using ts-for-gir, the following errors out:
new GObject.Object({});
// Expected 0 arguments, but got 1.
But GObject.Object does in fact take in a dictionary of objects. This annoying error causes this to fail:
class Book extends GObject.Object {
constructor(props?: Partial<BookConstructorProps>) {
super(props);
// Expected 0 arguments, but got 1.
}
},
When using
ts-for-gir, the following errors out:But
GObject.Objectdoes in fact take in a dictionary of objects. This annoying error causes this to fail: