Skip to content
This repository has been archived by the owner on May 16, 2023. It is now read-only.

Commit

Permalink
Make options object properties optional.
Browse files Browse the repository at this point in the history
  • Loading branch information
rakannimer authored Oct 16, 2018
1 parent 7fc3bba commit 170f5cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -132,7 +132,7 @@ export declare type Player = {
start: (
name: string,
when?: number,
options?: {
options?: Partial<{
gain: number;
attack: number;
decay: number;
Expand All @@ -141,7 +141,7 @@ export declare type Player = {
adsr: [number, number, number, number];
duration: number;
loop: boolean;
}
}>
) => AudioNode;
play: Player["start"];
stop: (when?: number, nodes?: AudioNode[]) => AudioNode[];
Expand Down

0 comments on commit 170f5cc

Please sign in to comment.