Skip to content

How to annotate return type of custom Haunted hook? #335

@micahjon

Description

@micahjon

Are there any guides on writing a custom Haunted hook and specifying types for the return value?

I've written a handful of custom hooks but can't get a return types to actually autocomplete in my IDE the same way that they do for the default Haunted hooks.

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