-
Notifications
You must be signed in to change notification settings - Fork 2
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
hard coded reference to src in dist/index.d.ts #10
Comments
Related to this topic: |
Hi @dfober import { Faust, FaustAudioWorkletNode, FaustScriptProcessorNode } from "faust2webaudio"; Here, as the For the second question. The package is now wrapped as an UMD module, which means it will detect current environment and make the module work for. If the module is included in a |
I'll try the import strategy. However, it doesn't solve my main problem: looking at the package, it's quite impossible to figure out what are the available types, classes et methods, unless I browse all the source code. |
I tried: |
Yes, I already tried... |
As far as I can understand, the dist folder contains everything to run Faust: it is self-contained from code and resource viewpoint. However, index.d.ts makes reference to the src folder, which makes the dist folder not sufficient for development.
In addition,
dist/index.d.ts
makes only imports from various files located in the src folder, which is not very declarative and more or less useless for the developer.Could it be possible to have a 'real' interface e.g. a
faust.d.ts
file that declares all the public types and interfaces without reference to the src folder? (and hides internal dependencies) It seems it almost exists in the src files.But maybe there are good reasons to proceed this way...
The text was updated successfully, but these errors were encountered: