-
-
Notifications
You must be signed in to change notification settings - Fork 3.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Typescript Error: Noise' incorrectly extends base class 'Oscillator' #2605
Comments
(this should probably be moved to the p5.sound repo) the issue is that the i'm going to suggest removing the docs from the derived class for now. |
@therewasaguy has merged processing/p5.js-sound#248, so the sound noise amp definitions should be fixed in the next release. the constant definitions in non-global mode will require another fix. |
@Spongman thanks for letting me know, do you need me to submit a new issue for the constant definitions? |
Hello, this bug is still not resolved as of today with Anyone care to fix this? |
@TeemuKoivisto Hi, can you file an issue over at https://github.com/processing/p5.js-sound as the source code for p5.sound ( |
@limzykenneth Hi and first thanks for the quick reply. Now that I recloned my repo it actually throws Here's the repo if you want to see it for yourself: https://github.com/TeemuKoivisto/pitch-detection.git |
Nature of issue?
Most appropriate sub-area of p5.js?
Which platform were you using when you encountered this?
Details about the bug:
p5.js version: 0.6.0
node.js version: 8.9.4
npm version: 3.1.0
Web browser and version: NA
Operating System: macOS 10.13.2
Steps to reproduce this:
I'm trying to get a basic p5Js template working with Typescript and Fusebox. In doing so I'm getting a compile errors in p5.d.ts below. You can fix the constants by inserting
///<reference path="p5.global-mode.d.ts" />
at the top ofp5.d.ts
. For the last error re: Noise I looked at the definition of Oscillator and Noise and found that Noise doesn't even overrideOscillator::amp()
so why they have different types I have no idea, but they do.[UPDATE] - Looks like the issues is with yuidocs not giving us a return type for the overloaded method???
Feature enhancement details:
New feature details:
The text was updated successfully, but these errors were encountered: