Skip to content

Navigator.vibrate is not recognized by Lib.d.ts #2044

Closed

Description

@tomy2105

It is supported by many browsers (mobile) so should be included.
Specification can be found at: http://www.w3.org/TR/vibration/

Activity

  1. added
    SuggestionAn idea for TypeScript
    Domain: lib.d.tsThe issue relates to the different libraries shipped with TypeScript
    RevisitAn issue worth coming back to
    on Feb 16, 2015
  2. danquirk commented on Feb 16, 2015

    @danquirk
    Member

    May need a new sub-part for lib.d.ts for stuff like this

  3. tomy2105 commented on Feb 18, 2015

    @tomy2105
    Author

    I agree, did you mean something like... ?

    interface Navigator extends ... (lots of others) ... NavigatorVibrate {
    }

    interface NavigatorVibrate {
    vibrate(pattern: number | number[]): boolean;
    }

  4. locked and limited conversation to collaborators on Jun 18, 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

    BugA bug in TypeScriptDomain: lib.d.tsThe issue relates to the different libraries shipped with TypeScriptFixedA PR has been merged for this issueRevisitAn issue worth coming back to

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions