Correct typing errors
This commit is contained in:
@ -16,7 +16,7 @@ import {
|
|||||||
superdough,
|
superdough,
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
} from "superdough";
|
} from "superdough";
|
||||||
import { Sound } from "zifferjs/src/types";
|
// import { Sound } from "zifferjs/src/types";
|
||||||
|
|
||||||
export type SoundParams = {
|
export type SoundParams = {
|
||||||
dur: number | number[];
|
dur: number | number[];
|
||||||
@ -347,7 +347,7 @@ export class SoundEvent extends AudibleEvent {
|
|||||||
this[key] = (value: number) => this.updateValue(keys[0], value);
|
this[key] = (value: number) => this.updateValue(keys[0], value);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
// this[methodName] = keys.bind(this);
|
// @ts-ignore
|
||||||
this[methodName] = (...args) => keys(this, ...args);
|
this[methodName] = (...args) => keys(this, ...args);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user