Open txbrown opened 2 months ago
When working with elementary-audio in a typescript repo, the compiler expects void returned from core.initialise() but the actual implementation and docs returns a Promise<AudioWorkletNode> type.
core.initialise()
Promise<AudioWorkletNode>
Source: https://github.com/elemaudio/elementary/blob/2703f05f38f950279743e8526bf538cdbf47c94f/js/packages/web-renderer/index.ts#L21
Typescript code:
The picture you shared has a totally different signature altogether. Second argument options: any? What version of web-renderer are you using?
options: any
When working with elementary-audio in a typescript repo, the compiler expects void returned from
core.initialise()
but the actual implementation and docs returns aPromise<AudioWorkletNode>
type.Source: https://github.com/elemaudio/elementary/blob/2703f05f38f950279743e8526bf538cdbf47c94f/js/packages/web-renderer/index.ts#L21
Typescript code: