Skip to content

Commit 8058373

Browse files
Merge pull request SharePoint#5362 from PrasadKasireddy/PrasadKasireddy-patch-1
Update the type declarations
2 parents 33f31ba + 9f3af99 commit 8058373

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

docs/spfx/web-parts/get-started/office-addins-tutorial.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Tutorial for creating Outlook Web Access extension using SharePoint Framework
33
description: Creating Outlook add-ins using SharePoint Framework
4-
ms.date: 02/08/2020
4+
ms.date: 02/19/2020
55
ms.prod: sharepoint
66
localization_priority: Priority
77
---
@@ -86,7 +86,7 @@ Manifest file contains by default definition to expose your add-in as a tool pan
8686
In the console, enter the following to install the types for the Office JavaScript SDK from the npm:
8787
8888
```shell
89-
npm install @types/office-js
89+
npm install @types/office-js --save-dev
9090
```
9191
9292
This adds the needed intelligence for the Office JavaScript SDK types when you develop your solution in TypeScript.

docs/spfx/web-parts/guidance/use-existing-javascript-libraries.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Use existing JavaScript libraries in SharePoint Framework client-side web parts
33
description: Ensure that your web parts won't negatively impact the performance of SharePoint pages that they are being used on.
4-
ms.date: 01/29/2018
4+
ms.date: 02/19/2020
55
ms.prod: sharepoint
66
localization_priority: Priority
77
---
@@ -24,7 +24,7 @@ The most common way of referencing existing JavaScript libraries in SharePoint F
2424
2. To use Angular with TypeScript, you would install typings using **npm**:
2525

2626
```sh
27-
npm install @types/angular --save
27+
npm install @types/angular --save-dev
2828
```
2929

3030
3. Reference Angular in your web part by using the `import` statement:
@@ -97,7 +97,7 @@ Referencing existing JavaScript libraries in the SharePoint Framework is easy an
9797
Using Angular as an example, to reference it as an external resource in your client-side web part, you start by installing its TypeScript typings using **npm**:
9898

9999
```sh
100-
npm install @types/angular --save
100+
npm install @types/angular --save-dev
101101
```
102102

103103
<br/>

0 commit comments

Comments
 (0)