Skip to content

Commit

Permalink
fix: Fix return type
Browse files Browse the repository at this point in the history
  • Loading branch information
Korilakkuma committed May 26, 2023
1 parent 0fac717 commit 835c984
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/OneshotModule/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -242,7 +242,7 @@ export class OneshotModule extends SoundModule {
*/
public param(params: 'mastervolume'): number;
public param(params: 'transpose'): number;
public param(params: OneshotModuleParams): OneshotModuleParams[keyof OneshotModuleParams];
public param(params: OneshotModuleParams): OneshotModule;
public param(params: keyof OneshotModuleParams | OneshotModuleParams): OneshotModuleParams[keyof OneshotModuleParams] | OneshotModule {
if (typeof params === 'string') {
switch (params) {
Expand Down

0 comments on commit 835c984

Please sign in to comment.