LoginSignup
1
1

More than 5 years have passed since last update.

Typings で DefinitelyTyped 由来の型情報をインストールするには

Posted at
% typings install dt~jquery

のように、配布元を明示する必要があります。

配布元とは?

次のように typings search を行った際に、source の欄に表示される項目です。

% typings search jquery

NAME           SOURCE HOMEPAGE                                  DESCRIPTION VERSIONS UPDATED
chai-jquery      dt   https://github.com/chaijs/chai-jquery                     1    2016-07-24T06:33:59.000Z
jasmine-jquery   dt   https://github.com/velesin/jasmine-jquery                 1    2016-03-17T12:06:54.000Z
jquery           dt   http://jquery.com/                                        1    2016-09-29T16:29:22.000Z

具体的には次の 10 種類あります。

配布元 説明
npm npm でインストールされたライブラリに関するものをインストールする場合に使用
github GitHub にホストされているものを直接使う場合に使用
bitbucket Bitbucket にホストされているものを直接使う場合に使用
bower bower でインストールされたライブラリに関するものをインストールする場合に使用
common 標準的なもの
shared ?
lib ここにリストされているもの
env Atom や Electron、ES2015 など実行環境に関するものをインストールする際に使用
global ここにリストされているもの
dt Definitely Typed に公開されているものを利用する場合に使用
1
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
1