microsoft-graph-typings
Advanced tools
Comparing version 0.2.0 to 0.2.1
{ | ||
"name":"microsoft-graph-typings", | ||
"version": "0.2.0", | ||
"version": "0.2.1", | ||
"types": "microsoft-graph.d.ts", | ||
"typescript": { | ||
@@ -5,0 +6,0 @@ "definition": "microsoft-graph.d.ts" |
@@ -6,7 +6,16 @@ # Microsoft Graph TypeScript Typings | ||
You can use Microsoft Graph definitions in your project in a few ways: | ||
* Directly reference microsoft-graph.d.ts with a triple slash reference at the top of your .ts files. | ||
```/// <reference path="microsoft-graph.d.ts" />```. | ||
* Use a [tsconfig.json](http://www.typescriptlang.org/docs/handbook/tsconfig-json.html) file so the /// reference doesn't need to be in every .ts file. By default, all files (including .d.ts) will be included in the directly where tsconfig.json resides. | ||
## Installation | ||
We recommend using [typings](https://github.com/typings/typings) to install the definitions. | ||
```bash | ||
# Install typings if you don't have it already | ||
npm install typings --global | ||
# Download the typings and save the dependency to typings.json | ||
typings install common~microsoft-graph --save | ||
``` | ||
![GIF showing intellisense and autocompletion for Microsoft Graph entities in Visual Studio Code ](https://github.com/microsoftgraph/msgraph-typescript-typings/raw/master/typings-demo.gif) | ||
@@ -16,2 +25,4 @@ ## Examples | ||
```typescript | ||
import * as MicrosoftGraph from "microsoft-graph" | ||
import * as request from 'superagent'; | ||
@@ -18,0 +29,0 @@ const accessToken:string = ""; |
@@ -5,5 +5,5 @@ { | ||
"main" : "microsoft-graph.d.ts", | ||
"name":"microsoft-graph-typings", | ||
"version": "0.2.0", | ||
"name":"microsoft-graph", | ||
"version": "0.2.1", | ||
"homepage": "https://github.com/microsoftgraph/msgraph-typescript-typings" | ||
} | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
1043
105
753275