Incorrectly indicates that a return parameter of Clutter.Actor.get_transformed_position may be null even though it cannot
For Clutter.Actor.get_transformed_position
/**
* clutter_actor_get_transformed_position:
* @self: A #ClutterActor
* @x: (out) (allow-none): return location for the X coordinate, or %NULL
* @y: (out) (allow-none): return location for the Y coordinate, or %NULL
*
* Gets the absolute position of an actor, in pixels relative to the stage.
*
* Since: 0.8
*/
void
clutter_actor_get_transformed_position (ClutterActor *self,
gfloat *x,
gfloat *y)
{
the generated typedef is
get_transformed_position(): [number | null, number | null];
Which I don't think is correct. The gjs wrapper will always provide both destination pointers so it will always return [number, number]
.
Note that the online documentation is correct in this case and indicates that it returns a [number, number]
.
https://gjs-docs.gnome.org/clutter7~7_api/clutter.actor#method-get_transformed_position
This pattern is seen in many generated typedefs, the above is but one example.