Skip to content

Gobject.Object doesn't take in constructor props.Β #191

@vixalien

Description

@vixalien

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.
    }
  },

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions