Skip to content

Commit

Permalink
[expo-av] Add return type to loadAsync() (expo#7704)
Browse files Browse the repository at this point in the history
* [expo-av] Add return type to loadAsync()

Authored-by: Alec Winograd <awinograd@gmail.com>
  • Loading branch information
bbarthec committed Apr 7, 2020
1 parent 04a5b55 commit 4f17aee
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Expand Up @@ -7,3 +7,5 @@
### 🎉 New features

### 🐛 Bug fixes

- Fixed `Plaback.loadAsync()` return type. ([#7559](https://github.com/expo/expo/pull/7559) by [@awinograd](https://github.com/awinograd))
2 changes: 1 addition & 1 deletion build/AV.d.ts
Expand Up @@ -71,7 +71,7 @@ export interface AV {
}
export interface Playback extends AV {
playAsync(): Promise<AVPlaybackStatus>;
loadAsync(source: AVPlaybackSource, initialStatus: AVPlaybackStatusToSet, downloadAsync: boolean): any;
loadAsync(source: AVPlaybackSource, initialStatus: AVPlaybackStatusToSet, downloadAsync: boolean): Promise<AVPlaybackStatus>;
unloadAsync(): Promise<AVPlaybackStatus>;
playFromPositionAsync(positionMillis: number, tolerances?: {
toleranceMillisBefore?: number;
Expand Down

0 comments on commit 4f17aee

Please sign in to comment.