Skip to content

(Partially?) incorrect type annotation for onError callback #93

@oguzhanogreden

Description

@oguzhanogreden

Here I read that the callback will be passed an argument of type:

{
  message: string
}

I've tested this by passing an incorrect API key to init() and it led to a runtime exception.

Looking at the network response, the type annotation seems incorrect as your API returns:

{
  detail: string
}

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions