DefinitelyTyped/types/angular-hotkeys
Leonard Thieu 1c3565933c :(
2017-06-13 13:00:42 -04:00
..
angular-hotkeys-tests.ts
index.d.ts :( 2017-06-13 13:00:42 -04:00
README.md Update README.md 2017-04-14 16:22:35 -05:00
tsconfig.json

What is it?

This is a typescript interface to be used with angular-hotkeys.

What are declaration files?

See the TypeScript handbook.

How do I get them?

npm

This is the preferred method. This is only available for TypeScript 2.0+ users. For these typings:

npm install --save-dev @types/angular-hotkeys

The types should then be automatically included by the compiler. See more in the handbook.

Other methods

These can be used by TypeScript 1.0.

  • Typings
  • NuGet (use preferred alternatives, nuget DT type publishing has been turned off)
  • Manually download from the master branch of this repository

You may need to add manual references.

How to use

After installing a package you can import the definition file and begin using it as so:


import * as hotkeys from '../../node_modules/@types/angular-hotkeys'

class FooController  {
    static $inject = [
        'hotkeys'
    ];

    constructor(
        private hotkeys: ng.hotkeys.HotkeysProvider
    ) { }
}

for a detailed explanation of the behavior of angular-hotkeys please refer to its documentation