Skip to content

Commit

Permalink
🎉 Add TypeScript typings
Browse files Browse the repository at this point in the history
  • Loading branch information
LinusU committed Oct 29, 2018
1 parent dc7fe97 commit 1df1b7b
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
declare interface Loudness {
getMuted(): Promise<boolean>
getVolume(): Promise<number>
setMuted(muted: boolean): Promise<void>
setVolume(volume: number): Promise<void>
}

declare const loudness: Loudness

export = loudness

0 comments on commit 1df1b7b

Please sign in to comment.