Skip to content

useContainerQuery hook typings are loose/wrong #98

@callumlocke

Description

@callumlocke

This library looks great, but I'm having a bit of trouble with its included typings. The useContainerQuery hook returns any[], but in reality it seems to always return a tuple of two specific types.

Is there any reason why useContainerQuery hook can't have its return value typed more precisely, something like [Params, React.Ref]?

Also, the second argument (initialSize) is required by the typings, but the readme examples and the source suggest that it isn't required IRL.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions