gjsify / ts-for-gir

TypeScript type definition generator for GObject introspection interfaces
https://gjsify.org/pages/projects
Apache License 2.0
237 stars 18 forks source link

Can't construct Graphene.Point #170

Closed flexagoon closed 2 months ago

flexagoon commented 5 months ago

When trying to do the following:

new Graphene.Point({x: 0.5, y: 0.5})

Typescript throws an error: Expected 0 arguments, but got 1.

However, constructing a point like that works, and is widely used in js extensions:

https://sourcegraph.com/search?q=context:global+graphene.point%28&patternType=keyword&sm=0

flexagoon commented 5 months ago

Same thing happens when trying to construct Gdk.RGBA by passing color values into the constructor.

JumpLink commented 3 months ago

@flexagoon I have tested this with @girs/graphene-1.0 v1.0.0-4.0.0-beta.5 and here are the types correct. I think it's time to make this version stable

flexagoon commented 2 months ago

Can confirm this works fine in the latest version