Skip to content

Update some built-in Types definitions #48

@zourdyzou

Description

@zourdyzou

What is the current behavior?
Throws an error exception in my machine. it says "error TS2304: Cannot find name 'PositionError'"

To Reproduce
Steps to reproduce the behavior:

First of all, It's a great library and tools to use some utilities using hooks and also a nice alternative to the react-use library. I see an error on a few built-in Types such as Geolocation API

What is the expected behavior?
I expect to upgrade some built-in type definitions to follow the recent typescript stable version

Screenshots
I don't have the screenshots but instead found this discussion in regard to this matter.

Information about:

  • OS: [e.g. iOS]
  • Browser [e.g. chrome, safari]
  • React version [e.g. 22]
  • use-haki version [eg. 1.1.0]

Additional context
Add any other context about the problem here.

Live version

It would be nice if you paste link to your JSFiddle or CodeSandbox example below.

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