Skip to content

Procedures [TS]: Allow omitting the return type #3776

Open

Description

@coolreader18

Currently to return nothing, one has to specify t.unit() as the return type for a procedure, but then Typescript requires that you return {} from the function. We should have an overload that omits the return type and then types the function as () => void.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions