Skip to content

getAudioRoutes definition returns Promise<void>, but should return Promise<AudioRoute[]> #748

@scarletcs

Description

@scarletcs

Bug report

  • I've checked the example to reproduce the issue.

  • Reproduced on:

  • Android

  • iOS

Above are essentially N/A, this is a definitions bug that is reflected in the code editor.

Description

index.d.ts currently lists getAudioRoutes() as returning Promise<void>. The readme suggests it should be returning Promise<AudioRoute[]>, correlated by the Java module.

Using getAudioRoutes thus requires a cast of getAudioRoutes() as unknown as Promise<AudioRoute[]> or similar.

The problematic line is located here:

static getAudioRoutes(): Promise<void>

This appears to have been broken in this change: 0cba24e#diff-7aa4473ede4abd9ec099e87fec67fd57afafaf39e05d493ab4533acc38547eb8

Steps to Reproduce

Use getAudioRoutes() in your code editor.

Versions

- Callkeep: 4.3.12
- React Native: N/A
- iOS: N/A
- Android: N/A
- Phone model: N/A 

Logs

N/A

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions