Skip to content

Commit 50e03cb

Browse files
authored
docs(guides): update typescript guide on using third party libs (#6981)
Remove outdated link to TypeSearch and update information about installing type definitions. Some npm and Yarn package registries now include type information for packages.
1 parent 32b4db0 commit 50e03cb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/content/guides/typescript.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -190,15 +190,15 @@ console.log(import.meta.webpack); // without reference declared above, TypeScrip
190190

191191
## Using Third Party Libraries
192192

193-
When installing third party libraries from npm, it is important to remember to install the typing definition for that library. These definitions can be found at [TypeSearch](https://microsoft.github.io/TypeSearch/).
193+
When installing third party libraries from npm, it is important to remember to install the typing definition for that library.
194194

195-
For example if we want to install lodash we can run the following command to get the typings for it:
195+
For example, if we want to install lodash we can run the following command to get the typings for it:
196196

197197
```bash
198198
npm install --save-dev @types/lodash
199199
```
200200

201-
For more information see [this blog post](https://devblogs.microsoft.com/typescript/the-future-of-declaration-files-2/).
201+
If the npm package already includes its declaration typings in the package bundle, downloading the corresponding `@types` package is not needed. For more information see the [TypeScript changelog blog](https://github.blog/changelog/2020-12-16-npm-displays-packages-with-bundled-typescript-declarations/).
202202

203203
## Importing Other Assets
204204

0 commit comments

Comments
 (0)