Skip to content

Error in "index.d.td" for function "requestPermissions" #162

Closed
@lord-saumagen

Description

@lord-saumagen

Dear Ladies and Gentlemen,

it came to my attention that the definition of the "requestPermission" function is erroneous.
The function is implemented as an asynchronous function for android as well as for IOS. See
the pictures below.

image

image

The android implementation calls a function which returns a promise. The IOS implementation constructs a promise in the function implementation.

Unfortunately the type definition doesn't show that the function returns a promise. That made me
believe the function executes synchronously, which lead to some strange behaviors in my program.

image

It would be very nice if you could update the "index.d.ts" file.

Kind regards, Lord Saumagen.

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