Skip to content
This repository was archived by the owner on Jan 27, 2023. It is now read-only.

Commit a0b7fba

Browse files
committed
Updating readme file.
1 parent b6cb931 commit a0b7fba

File tree

1 file changed

+7
-8
lines changed

1 file changed

+7
-8
lines changed

Diff for: README.md

+7-8
Original file line numberDiff line numberDiff line change
@@ -79,16 +79,15 @@ Dependency graph for the types:
7979

8080
![Dependency Graph](img/dependencies.png)
8181

82-
### Using tsd
83-
Although TypeScript declare files do not exist at [DefinitelyTyped](https://github.com/DefinitelyTyped/DefinitelyTyped) repo, they can still be used through [tsd](https://www.npmjs.com/package/tsd).
82+
### Consuming the Types
8483

85-
1. First, make sure that the dependencies are loaded using below command:
86-
* `tsd install jquery knockout q react require --save`
87-
88-
2. Next, run below command to get vss-web-extension-sdk types added to tsd.d.ts:
89-
* `tsd link`
84+
You only need to add below line to the top of your TypeScript file:
85+
86+
```
87+
/// <reference types="vss-web-extension-sdk" />
88+
```
9089

91-
3. Finally, add only reference to typings/tsd.d.ts in your TypeScript files.
90+
Make sure that you specify ```"moduleResolution": "node"``` in your tsconfig.json file.
9291

9392
## Code of Conduct
9493

0 commit comments

Comments
 (0)