Skip to content

DecodeErrorCallback in the Web Audio API has the wrong signature #6534

Closed

Description

Relevant spec excerpt from section 2.1:

callback DecodeErrorCallback = void (DOMException error);

Definition from src/lib/dom.generated.d.ts:

interface DecodeErrorCallback {
    (): void;
}

Activity

  1. CShankland commented on Jan 19, 2016

    @CShankland
    Author

    A related issue is missing disconnect overloads in AudioNode (section 2.4):

        void      disconnect ();
        void      disconnect (unsigned long output);
        void      disconnect (AudioNode destination);
        void      disconnect (AudioNode destination, unsigned long output);
        void      disconnect (AudioNode destination, unsigned long output, unsigned long input);
        void      disconnect (AudioParam destination);
        void      disconnect (AudioParam destination, unsigned long output);
    

    Existing dom.generated.d.ts definition:

    disconnect(output?: number): void;
    
  2. mhegazy commented on Jan 19, 2016

    @mhegazy
    Contributor
  3. added
    Bug
    Domain: lib.d.ts
    on Jan 19, 2016
  4. added this to the milestone on Jan 19, 2016
  5. mhegazy commented on Jan 19, 2016

    @mhegazy
    Contributor

    PRs are welcomed. You can find more informaiton about contributing lib.d.ts fixes at: https://github.com/Microsoft/TypeScript/blob/master/CONTRIBUTING.md#contributing-libdts-fixes

  6. modified the milestones: TypeScript 2.0, on Jan 29, 2016
  7. added
    Fixed
    and removed on Apr 27, 2016
  8. locked and limited conversation to collaborators on Jun 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    BugDomain: lib.d.tsFixed

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions

      ⌂ Proxy