Skip to content

Typescript type definition for initialize method is incorrect #53

@txbrown

Description

@txbrown

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.

Source:

async initialize(audioContext: AudioContext, workletOptions: AudioWorkletNodeOptions = {}, eventInterval: number = 16): Promise<AudioWorkletNode> {

Typescript code:
image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions