Skip to content

Commit eacdf84

Browse files
authored
Used the --save-dev argument
Used the --save-dev argument to let the type declarations go in devDependencies
1 parent 3bee97b commit eacdf84

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/spfx/office-addins-create.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ You will need to deploy the solution to tenant using the **tenant scoped deploym
4444
Before you can use the Office JavaScript SDK in your code, you'll need to include correct types for the solution. You can install latest types by adding `@types/office-js` package from the npm to your solution with following command:
4545

4646
```shell
47-
npm install @types/office-js --save
47+
npm install @types/office-js --save-dev
4848
```
4949

5050
You can detect if the web part is on the Office context by using page context as shown on the following property, which refers to the Office JavaScript SDK. This property value is dependent on the context where the code is being executed.

0 commit comments

Comments
 (0)