Skip to content

Typed objects for function input and output #770

@AdminCrystal

Description

@AdminCrystal

Versions

What versions of Godot do you want to use this feature in?
Whenever

The Feature

Adding types where possible to public facing methods mainly but technically could be any of them
An example
func was_called(variant, method_name, parameters=null):
could be replaced with
func was_called(variant: Variant, method_name: String, parameters=null) -> bool:
I believe parameters can be array or dictionary so may need to put parameters as Variant or if its dictionary or array I can put empty one as default

I was thinking about doing a couple, if you are ok i can create a Pr for a few

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions