Aamir Afridi 7 years ago
committed by Dan Abramov
parent
commit
c6955212f3
  1. 2
      content/docs/static-type-checking.md

2
content/docs/static-type-checking.md

@ -251,7 +251,7 @@ To be able to show errors and hints from other packages, the compiler relies on
There are two main ways to get declarations for a library:
__Bundled__ - The library bundles it's own declaration file. This is great for us, since all we need to do is install the library, and we can use it right away. To check if a library has bundled types, look for an `index.d.ts` file in the project. Some libraries will have it specified in teir `package.json` under the `typings` or `types` field.
__Bundled__ - The library bundles it's own declaration file. This is great for us, since all we need to do is install the library, and we can use it right away. To check if a library has bundled types, look for an `index.d.ts` file in the project. Some libraries will have it specified in their `package.json` under the `typings` or `types` field.
__[DefinitelyTyped](https://github.com/DefinitelyTyped/DefinitelyTyped)__ - DefinitelyTyped is a huge repository of declarations for libraries that don't bundle a declaration file. The declarations are crowd-sourced and managed by Microsoft and open source contributors. React for example doesn't bundle it's own declaration file. Instead we can get it from DefintelyTyped. To do so enter this command in your terminal.

Loading…
Cancel
Save